[sacjava] 12/28: Pass -source and -target to javac

Jakub Adam xhaakon-guest at moszumanska.debian.org
Sat Aug 22 11:41:18 UTC 2015


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

xhaakon-guest pushed a commit to branch master
in repository sacjava.

commit c6568ca4414f1c9ee106ace44db0a0cf12754a23
Author: Niels Thykier <nthykier at debian.org>
Date:   Tue Jun 19 20:41:05 2012 +0000

    Pass -source and -target to javac
---
 debian/changelog | 8 ++++++++
 debian/rules     | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index cb26b8a..37909e3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sacjava (1.3-5) UNRELEASED; urgency=low
+
+  * Team upload.
+  * Pass -source 1.5 and -target 1.5 to ensure byte code
+    can be run with older JVMs.
+
+ -- Niels Thykier <niels at thykier.net>  Tue, 19 Jun 2012 22:39:05 +0200
+
 sacjava (1.3-4) unstable; urgency=low
 
   * Team upload.
diff --git a/debian/rules b/debian/rules
index 306da8f..65e357b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,10 +14,10 @@ build-indep: build-stamp
 build-stamp: configure-stamp 
 	dh_testdir
 
-	/usr/lib/jvm/default-java/bin/javac `find org -name "*.java" | xargs`
+	/usr/lib/jvm/default-java/bin/javac -source 1.5 -target 1.5 `find org -name "*.java" | xargs`
 	/usr/lib/jvm/default-java/bin/jar cvf sac-1.3.jar `find org -name "*.class" | xargs`
 	if [ ! -d doc ]; then mkdir doc; fi
-	/usr/lib/jvm/default-java/bin/javadoc -d doc `find org -name "*.java" | xargs`
+	/usr/lib/jvm/default-java/bin/javadoc -source 1.5 -d doc `find org -name "*.java" | xargs`
 
 	touch $@
 

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



More information about the pkg-java-commits mailing list