[pkg-java] r11363 - in trunk/yui-compressor/debian: . bin

Damien Raude-Morvan drazzib at alioth.debian.org
Sun Jan 17 18:59:59 UTC 2010


Author: drazzib
Date: 2010-01-17 18:59:59 +0000 (Sun, 17 Jan 2010)
New Revision: 11363

Modified:
   trunk/yui-compressor/debian/bin/yui-compressor
   trunk/yui-compressor/debian/changelog
   trunk/yui-compressor/debian/control
Log:
Use java-wrappers for bin/yui-compressor launcher script

Modified: trunk/yui-compressor/debian/bin/yui-compressor
===================================================================
--- trunk/yui-compressor/debian/bin/yui-compressor	2010-01-17 18:47:52 UTC (rev 11362)
+++ trunk/yui-compressor/debian/bin/yui-compressor	2010-01-17 18:59:59 UTC (rev 11363)
@@ -1,2 +1,12 @@
 #!/bin/sh
-java -jar /usr/share/yui-compressor/yui-compressor.jar $@
+
+YUI_JAR=/usr/share/yui-compressor/yui-compressor.jar
+
+# Include the wrappers utility script
+. /usr/lib/java-wrappers/java-wrappers.sh
+
+# We need a java5 runtime
+find_java_runtime java5
+
+# Run YUI Compressor
+run_java -jar $YUI_JAR $extra_args "$@"

Modified: trunk/yui-compressor/debian/changelog
===================================================================
--- trunk/yui-compressor/debian/changelog	2010-01-17 18:47:52 UTC (rev 11362)
+++ trunk/yui-compressor/debian/changelog	2010-01-17 18:59:59 UTC (rev 11363)
@@ -8,8 +8,9 @@
   * Create extended manpage from help output
     - remove docbook debian/yui-compressor.1.xml
     - remove Build-Depends on docbook2x
+  * Use java-wrappers for bin/yui-compressor launcher script
 
- -- Damien Raude-Morvan <drazzib at debian.org>  Sun, 17 Jan 2010 19:25:37 +0100
+ -- Damien Raude-Morvan <drazzib at debian.org>  Sun, 17 Jan 2010 19:51:06 +0100
 
 yui-compressor (2.4.2-1) unstable; urgency=low
 

Modified: trunk/yui-compressor/debian/control
===================================================================
--- trunk/yui-compressor/debian/control	2010-01-17 18:47:52 UTC (rev 11362)
+++ trunk/yui-compressor/debian/control	2010-01-17 18:59:59 UTC (rev 11363)
@@ -13,7 +13,7 @@
 
 Package: yui-compressor
 Architecture: all
-Depends: ${misc:Depends}, default-jre-headless | java2-runtime-headless, libjargs-java
+Depends: ${misc:Depends}, default-jre-headless | java5-runtime-headless, libjargs-java, java-wrappers
 Description: JavaScript/CSS minifier
  The YUI Compressor is a JavaScript compressor which, in addition to removing
  comments and white-spaces, obfuscates local variables using the smallest




More information about the pkg-java-commits mailing list