source: osm/applications/editors/josm/plugins/seachart/js57toosm/build.xml@ 34241

Last change on this file since 34241 was 32368, checked in by donvip, 9 years ago

seachart - make the build portable

File size: 1.2 KB
RevLine 
[30894]1<project name="js57toosm" default="dist" basedir=".">
2 <property name="src" location="src"/>
[32368]3 <property name="srcmain" location="../src"/>
[30894]4 <property name="build" location="build"/>
5 <property name="jarfile" location="./js57toosm.jar"/>
[32368]6 <property name="lang.dir" value="../libs/"/>
[31659]7 <path id="classpath">
8 <fileset dir="${lang.dir}" includes="**/commons-lang3-3.4.jar"/>
9 </path>
[32368]10
[30894]11 <target name="init">
12 <mkdir dir="${build}"/>
13 </target>
[32368]14
[31659]15 <target name="compile" depends="init" description="compile the source">
[32368]16 <javac includeantruntime="false" sourcepath="${srcmain}" srcdir="${src}" destdir="${build}" classpathref="classpath" encoding="UTF-8" />
[30894]17 </target>
[31659]18
19 <target name="dist" depends="compile" description="generate the distribution">
[31768]20 <jar jarfile="${jarfile}" basedir="${build}" manifestencoding="UTF-8">
[30894]21 <manifest>
22 <attribute name="Main-Class" value="js57toosm.Js57toosm"/>
[31659]23 <attribute name="Class-Path" value="${jarfile}"/>
[30894]24 </manifest>
[31598]25 <zipgroupfileset dir="${lang.dir}" includes="**/commons-lang3-3.4.jar" />
[30894]26 </jar>
27 </target>
[32368]28
[31659]29 <target name="clean" description="clean up">
[30894]30 <delete dir="${build}"/>
31 <delete file="${jarfile}"/>
32 </target>
33</project>
Note: See TracBrowser for help on using the repository browser.