SLING-5409 - Enhance the SightlyJavaCompilerService to not enforce a package name for Use objects stored in the repository

* package names are now automatically added or replaced (depending on the case) for Use objects

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1723074 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/resources/SLING-INF/apps/sightly/scripts/use/RepoPojoNoPkg.java b/src/main/resources/SLING-INF/apps/sightly/scripts/use/RepoPojoNoPkg.java
new file mode 100644
index 0000000..d166d9d
--- /dev/null
+++ b/src/main/resources/SLING-INF/apps/sightly/scripts/use/RepoPojoNoPkg.java
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+public class RepoPojoNoPkg {
+    public static final String FIELD = "nopkg";
+}
diff --git a/src/main/resources/SLING-INF/apps/sightly/scripts/use/use.html b/src/main/resources/SLING-INF/apps/sightly/scripts/use/use.html
index 1ff8b0d..6882ef8 100644
--- a/src/main/resources/SLING-INF/apps/sightly/scripts/use/use.html
+++ b/src/main/resources/SLING-INF/apps/sightly/scripts/use/use.html
@@ -31,5 +31,6 @@
         <div id="resadapt"
              data-sly-use.resadapt="org.apache.sling.scripting.sightly.testing.adaptable.ResourceAdapterUseObject">${resadapt.title}</div>
         <div id="osgi" data-sly-use.osgi="org.apache.sling.scripting.sightly.testing.use.TestService">${osgi.sayHello}</div>
+        <div id="repopojo-nopkg" data-sly-use.repoNoPkg="RepoPojoNoPkg">${repoNoPkg.FIELD}</div>
     </body>
-</html>
\ No newline at end of file
+</html>