Package list libkmlframework-java / 86fa758 debian / patches / build_xml.patch
86fa758

Tree @86fa758 (Download .tar.gz)

build_xml.patch @86fa758raw · history · blame

Author: Andreas Tille <tille@debian.org>
Las-Update: Wed Jan 18 11:54:31 2012 +0000
Description: create simple input file for ant

--- /dev/null
+++ libkmlframework-java-20090718/src/build.xml
@@ -0,0 +1,46 @@
+<project name="kmlframework" basedir="." default="dist">
+
+    <property environment="env" />
+
+    <property name="version" value="1.2" />
+    <property name="build.nb" value="0" />
+
+    <patternset id="java.libs" includes="*.jar" />
+    <path id="mylibs">
+        <fileset dir="/usr/share/java">
+            <patternset refid="java.libs" />
+        </fileset>
+    </path>
+
+    <property name="src.dir" value="." />
+    <property name="bin.dir" value="../bin" />
+    <property name="lib.dir" value="../lib" />
+
+    <patternset id="java.libs" includes="*.jar" />
+
+    <target name="clean" description="Delete all generated files">
+        <delete dir="${bin.dir}" />
+    </target>
+
+    <target name="compile" description="Compile src files"
+        depends="clean">
+        <delete dir="${bin.dir}" />
+        <mkdir dir="${bin.dir}" />
+        <javac classpathref="mylibs" srcdir="${src.dir}" destdir="${bin.dir}">
+        </javac>
+    </target>
+
+    <target name="create-jar" description="Create jar file" depends="compile">
+        <jar destfile="${lib.dir}/org.boehn.kmlframework.jar" basedir="${bin.dir}"
+            update="true">
+            <manifest>
+                <!-- <attribute name="Main-Class" value="THE MAIN CLASS OF THE PROGRAM" /> -->
+                <attribute name="Implementation-Version" value="${version}" />
+                <attribute name="Implementation-Build" value="${build.nb}" />
+            </manifest>
+        </jar>
+    </target>
+   
+    <target name="dist" depends="create-jar" />
+
+</project>