[gradle-1.12] 39/211: Fix missing-classpath lintian warnings

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Wed Jul 1 14:17:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

seamlik-guest pushed a commit to branch master
in repository gradle-1.12.

commit b839c6a0f4f28792b793d9cf13d6b9c740285ff1
Author: Miguel Landaeta <miguel at miguel.cc>
Date:   Tue May 24 21:39:01 2011 -0430

    Fix missing-classpath lintian warnings
---
 debian/gradle.links                          |  2 ++
 debian/patches/12_fix_missing_classpath.diff | 32 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 3 files changed, 35 insertions(+)

diff --git a/debian/gradle.links b/debian/gradle.links
index 3a5b94a..eefb2ed 100644
--- a/debian/gradle.links
+++ b/debian/gradle.links
@@ -60,3 +60,5 @@ usr/share/java/jsp-api-2.1.jar                   usr/share/gradle/lib/plugins/js
 usr/share/java/junit4.jar                        usr/share/gradle/lib/plugins/junit4.jar
 usr/share/java/servlet-api-2.5.jar               usr/share/gradle/lib/plugins/servlet-api-2.5.jar
 usr/share/java/testng.jar                        usr/share/gradle/lib/plugins/testng.jar
+
+# Probably a link to eclipse-jdt jar is needed, I'm not sure yet.
diff --git a/debian/patches/12_fix_missing_classpath.diff b/debian/patches/12_fix_missing_classpath.diff
new file mode 100644
index 0000000..d70b73e
--- /dev/null
+++ b/debian/patches/12_fix_missing_classpath.diff
@@ -0,0 +1,32 @@
+Description: Set missing Class-Path in jars
+Author: Miguel Landaeta <miguel at miguel.cc>
+Forwarded: no
+Last-Update: 2011-05-24
+
+--- gradle-1.0~m3.orig/build.gradle
++++ gradle-1.0~m3/build.gradle
+@@ -122,10 +122,20 @@ configure(groovyProjects()) {
+     }
+ 
+     tasks.withType(Jar).each { jar ->
+-        jar.manifest.mainAttributes([
+-                (Attributes.Name.IMPLEMENTATION_TITLE.toString()): 'Gradle',
+-                (Attributes.Name.IMPLEMENTATION_VERSION.toString()): version,
+-        ])
++        // Set missing Class-Path in jars
++        if (jar.getArchiveName() ==~ /^gradle-core-[0-9].*/) {
++            jar.manifest.mainAttributes([
++                    (Attributes.Name.IMPLEMENTATION_TITLE.toString()): 'Gradle',
++                    (Attributes.Name.IMPLEMENTATION_VERSION.toString()): version,
++                    //(Attributes.Name.CLASS_PATH.toString()): 'stuff',
++            ])
++        } else {
++            jar.manifest.mainAttributes([
++                    (Attributes.Name.IMPLEMENTATION_TITLE.toString()): 'Gradle',
++                    (Attributes.Name.IMPLEMENTATION_VERSION.toString()): version,
++                    (Attributes.Name.CLASS_PATH.toString()): 'grails-core.jar',
++            ])
++        }
+     }
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 2c6409a..b44fd03 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,5 +5,6 @@
 05_polyglot_maven.diff
 10_fix_version.diff
 11_fix_jni_path.diff
+12_fix_missing_classpath.diff
 21_docs.diff
 22_checkstyle.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gradle-1.12.git



More information about the pkg-java-commits mailing list