[med-svn] [ipig] 01/01: add resources in jar, add required libs in classpath, install generated jar in /usr/share/java

Olivier Sallou osallou at debian.org
Mon Feb 10 08:56:11 UTC 2014


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

osallou pushed a commit to branch master
in repository ipig.

commit 3d6caeb18cf6669d2421523905bbdd1668b59f2f
Author: Olivier Sallou <olivier.sallou at debian.org>
Date:   Mon Feb 10 09:56:06 2014 +0100

    add resources in jar, add required libs in classpath, install generated jar in /usr/share/java
---
 debian/build.xml  | 10 +++++++++-
 debian/ipig.jlibs |  1 +
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/build.xml b/debian/build.xml
index 2bf37c0..cba7e18 100644
--- a/debian/build.xml
+++ b/debian/build.xml
@@ -6,6 +6,7 @@
 	<property name="src.dir" location="src"/>
 	<property name="lib.dir" location="/usr/share/java"/>
 	<property name="class.dir" location="${build.dir}/classes"/>
+	<property name="resources.dir" location="res"/>
 	
 	<property name="project.name" value="ipig"/>
 	<property name="debug" value="true"/>
@@ -14,9 +15,13 @@
 	<property environment="env"/>
 	<property name="project.jarfile.name" value="iPiG.jar"/>	
 	
-	<property name="class.path" value=""/>
+	<property name="class.path" value="${lib.dir}/commons-compress.jar ${lib.dir}/commons-net.jar ${lib.dir}/jdom1.jar ${lib.dir}/xercesImpl.jar"/>
 	<path id="compile.classpath">
 		<fileset dir="${lib.dir}">
+			<include name="commons-compress.jar"/>
+			<include name="commons-net.jar"/>
+			<include name="jdom1.jar"/>
+			<include name="xercesImpl.jar"/>
 		</fileset>
 	</path>
 	
@@ -34,6 +39,9 @@
 		<mkdir dir="${dist.dir}"/>
 		<javac srcdir="${src.dir}" destdir="${class.dir}" classpathref="compile.classpath" debug="${debug}" optimize="${optimized}" nowarn="true" source="1.6" target="1.6">
 		</javac>
+		<copy todir="${class.dir}" failonerror="false">
+			<fileset dir="${resources.dir}"/>
+		</copy>
 	</target>
 
 	<target name="jar" depends="compile">
diff --git a/debian/ipig.jlibs b/debian/ipig.jlibs
new file mode 100644
index 0000000..c76b352
--- /dev/null
+++ b/debian/ipig.jlibs
@@ -0,0 +1 @@
+dist/iPiG.jar

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ipig.git



More information about the debian-med-commit mailing list