GUI2 add in support for Preferences Service

Change-Id: Icdf2165d9f638aeff1b110a64777b93295935ed2
diff --git a/web/gui/BUILD b/web/gui/BUILD
index 77fa7f7..f8b70c8 100644
--- a/web/gui/BUILD
+++ b/web/gui/BUILD
@@ -210,14 +210,24 @@
 genrule(
     name = "onos-gui-java-for-gui2",
     srcs = glob([
-        "src/main/java/org/onosproject/ui/impl/Main*Resource.java",
-        "src/main/java/org/onosproject/ui/impl/ApplicationResource.java",
+        "src/main/java/org/onosproject/ui/impl/**/*.java",
     ]),
     outs = ["onos-gui-java-for-gui2.srcjar"],
     cmd = "jar cf $@ $(SRCS)",
     visibility = ["//visibility:public"],
 )
 
+genrule(
+    name = "onos-gui-lion-for-gui2",
+    srcs = glob([
+        "src/main/resources/org/onosproject/ui/lion/**/*",
+        "src/main/resources/core/**/*",
+    ]),
+    outs = ["onos-gui-lion-for-gui2.srcjar"],
+    cmd = "jar cf $@ $(SRCS)",
+    visibility = ["//visibility:public"],
+)
+
 """
     Builds the tar ball for the ONOS GUI
 """