[libcofoja-java] 09/12: Compile Cofoja's own contracts

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Apr 14 23:45:43 UTC 2014


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

ebourg-guest pushed a commit to branch master
in repository libcofoja-java.

commit 319fdfc5e62ee497e0c88a741c183a52d49c16f9
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Apr 15 00:35:37 2014 +0200

    Compile Cofoja's own contracts
---
 debian/changelog |  1 +
 debian/rules     | 17 ++++++++++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7e599a6..226bb59 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 cofoja (1.0~r139-3) UNRELEASED; urgency=medium
 
   * Team upload.
+  * Compile Cofoja's own contracts
   * Removed debian/local.properties, use Ant command line arguments instead
   * debian/control:
     - Standards-Version updated to 3.9.5 (no changes)
diff --git a/debian/rules b/debian/rules
index e10f70d..a3d2cb3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,22 @@ export JAVA_HOME=/usr/lib/jvm/default-java
 	dh $@  --with javahelper --buildsystem ant
 
 override_dh_auto_build:
-	dh_auto_build -- -Dasm.jar=/usr/share/java/asm3-all.jar -Djunit.jar=/usr/share/java/junit4.jar
+	# build unannotated cofoja library
+	dh_auto_build -- -Dasm.jar=/usr/share/java/asm3-all.jar \
+                         -Djunit.jar=/usr/share/java/junit4.jar
+
+	# rebuild using the library.
+	mv dist/cofoja.jar build/bootstrap.jar
+	dh_auto_build -- -Dasm.jar=/usr/share/java/asm3-all.jar \
+                         -Djunit.jar=/usr/share/java/junit4.jar \
+                         -Dant.build.javac.source=1.6 \
+                         -Dant.build.javac.target=1.6 \
+                         clean bootstrap
+	mv dist/ccofoja.jar dist/cofoja.jar
+
+override_dh_auto_clean:
+	-rm build/bootstrap.jar
+	dh_auto_clean
 
 get-orig-source:
 	debian/get-orig-source.sh

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



More information about the pkg-java-commits mailing list