source: osm/applications/editors/josm/plugins/seachart/jplotter/build.xml@ 34795

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

seachart - make the build portable

File size: 960 bytes
RevLine 
[30894]1<project name="jplotter" 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="./jplotter.jar"/>
6
7 <target name="init">
8 <mkdir dir="${build}"/>
9 </target>
10
11 <target name="compile" depends="init" description="compile the source " >
[32368]12 <javac includeantruntime="false" sourcepath="${srcmain}" srcdir="${src}" destdir="${build}"/>
[30894]13 </target>
14
15 <target name="dist" depends="compile" description="generate the distribution" >
[31768]16 <jar jarfile="${jarfile}" basedir="${build}" manifestencoding="UTF-8">
[30894]17 <manifest>
18 <attribute name="Main-Class" value="jplotter.Jplotter"/>
19 <attribute name="Class-Path" value="$jarfile"/>
20 </manifest>
21 </jar>
22 </target>
23
24 <target name="clean" description="clean up" >
25 <delete dir="${build}"/>
26 <delete file="${jarfile}"/>
27 </target>
28</project>
Note: See TracBrowser for help on using the repository browser.