[closure-compiler] 02/03: user java-wrappers to locate JVM
Tony Mancill
tmancill at moszumanska.debian.org
Sat May 3 05:28:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
tmancill pushed a commit to branch master
in repository closure-compiler.
commit cdd49b5ef539ba6b03680ca89dd66e1516b678b8
Author: tony mancill <tmancill at debian.org>
Date: Fri May 2 21:41:40 2014 -0700
user java-wrappers to locate JVM
---
debian/control | 5 +++--
debian/wrapper_script/closure-compiler | 15 ++++++---------
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/debian/control b/debian/control
index ceef4de..9645475 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,8 @@ Source: closure-compiler
Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
-Uploaders: Thomas Koch <thomas at koch.ro>
+Uploaders: Thomas Koch <thomas at koch.ro>,
+ tony mancill <tmancill at debian.org>
Build-Depends:
debhelper (>= 9),
default-jdk,
@@ -29,7 +30,7 @@ Homepage: http://code.google.com/p/closure-compiler
Package: closure-compiler
Architecture: all
Depends: ${misc:Depends}, libclosure-compiler-java (>= ${source:Version}),
- default-jre-headless
+ default-jre-headless, java-wrappers
Description: JavaScript optimizing compiler
Closure Compiler is a JavaScript optimizing compiler. It parses your
JavaScript, analyzes it, removes dead code and rewrites and minimizes
diff --git a/debian/wrapper_script/closure-compiler b/debian/wrapper_script/closure-compiler
index c471943..caa59f0 100755
--- a/debian/wrapper_script/closure-compiler
+++ b/debian/wrapper_script/closure-compiler
@@ -1,13 +1,10 @@
#!/bin/sh
-JAVA=/usr/bin/java
+. /usr/lib/java-wrappers/java-wrappers.sh
-CPDEPS="closure-compiler args4j guava json jsr305 protobuf"
-MAINCLASS=com.google.javascript.jscomp.CommandLineRunner
+MAIN=com.google.javascript.jscomp.CommandLineRunner
+JARS=closure-compiler
-for DEP in $CPDEPS
-do
- CP=$CP:/usr/share/java/${DEP}.jar
-done
-
-$JAVA -cp $CP ${MAINCLASS} $@
\ No newline at end of file
+find_java_runtime
+find_jars ${JARS}
+run_java ${MAIN} $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/closure-compiler.git
More information about the pkg-java-commits
mailing list