summaryrefslogtreecommitdiffstats
path: root/tags/j
diff options
context:
space:
mode:
Diffstat (limited to 'tags/j')
-rw-r--r--tags/j/jar-contains-source.tag12
-rw-r--r--tags/j/jar-not-in-usr-share.tag14
-rw-r--r--tags/j/javalib-but-no-public-jars.tag10
3 files changed, 36 insertions, 0 deletions
diff --git a/tags/j/jar-contains-source.tag b/tags/j/jar-contains-source.tag
new file mode 100644
index 0000000..94be210
--- /dev/null
+++ b/tags/j/jar-contains-source.tag
@@ -0,0 +1,12 @@
+Tag: jar-contains-source
+Severity: warning
+Check: languages/java
+Explanation: The package ships the specified Jar file containing a
+ <code>.java</code> file alongside a corresponding <code>.class</code> file.
+ .
+ This wastes disk space as the source is always available via <code>apt
+ source</code>.
+ .
+ Please ensure that the specified <code>.java</code> files are not shipped in
+ the Jar file.
+See-Also: java-policy 2.4
diff --git a/tags/j/jar-not-in-usr-share.tag b/tags/j/jar-not-in-usr-share.tag
new file mode 100644
index 0000000..c031fad
--- /dev/null
+++ b/tags/j/jar-not-in-usr-share.tag
@@ -0,0 +1,14 @@
+Tag: jar-not-in-usr-share
+Severity: warning
+Check: languages/java
+See-Also: java-policy 2.2, java-policy 2.3
+Explanation: The classpath listed in some of the files references files outside
+ of /usr/share, while all installed JAR files must be within
+ /usr/share/java for libraries or /usr/share/*package* for JARs for
+ private use.
+ .
+ The rationale is that jar files are in almost all cases architecture
+ independent and therefore should be in /usr/share. If the jar file is
+ truly architecture dependent or it cannot be moved since symlinked jar
+ files are not accepted by the application, then please override this
+ tag.
diff --git a/tags/j/javalib-but-no-public-jars.tag b/tags/j/javalib-but-no-public-jars.tag
new file mode 100644
index 0000000..4de9b60
--- /dev/null
+++ b/tags/j/javalib-but-no-public-jars.tag
@@ -0,0 +1,10 @@
+Tag: javalib-but-no-public-jars
+Severity: info
+Check: languages/java
+Explanation: The name of the package suggests it contains a java library but
+ the package does not ship any JAR files in <code>/usr/share/java</code>.
+ .
+ The java policy mandates that JAR files outside <code>/usr/share/java</code>
+ are for private use.
+See-Also:
+ java-policy