source: osm/applications/editors/josm/plugins/seachart/jicons/build.xml@ 32992

Last change on this file since 32992 was 32368, checked in by donvip, 8 years ago

seachart - make the build portable

File size: 1.6 KB
Line 
1<project name="jicons" default="dist" basedir=".">
2 <property name="src" location="src"/>
3 <property name="srcmain" location="../src"/>
4 <property name="build" location="build"/>
5 <property name="jarfile" location="./jicons.jar"/>
6 <property name="batik.dir" value="../libs/"/>
7 <path id="classpath">
8 <fileset dir="${batik.dir}" includes="**/batik*.jar"/>
9 </path>
10
11 <target name="init">
12 <mkdir dir="${build}"/>
13 </target>
14
15 <target name="compile" depends="init" description="compile the source " >
16 <javac includeantruntime="false" sourcepath="${srcmain}" srcdir="${src}" destdir="${build}" classpathref="classpath" encoding="UTF-8" />
17 </target>
18
19 <target name="dist" depends="compile" description="generate the distribution" >
20 <jar jarfile="${jarfile}" basedir="${build}" manifestencoding="UTF-8">
21 <manifest>
22 <attribute name="Main-Class" value="jicons.Jicons"/>
23 <attribute name="Class-Path" value="$jarfile"/>
24 </manifest>
25 <zipgroupfileset dir="${batik.dir}" includes="**/batik-svggen-1.8.jar" />
26 <zipgroupfileset dir="${batik.dir}" includes="**/batik-dom-1.8.jar" />
27 <zipgroupfileset dir="${batik.dir}" includes="**/batik-util-1.8.jar" />
28 <zipgroupfileset dir="${batik.dir}" includes="**/batik-awt-util-1.8.jar" />
29 <zipgroupfileset dir="${batik.dir}" includes="**/batik-ext-1.8.jar" />
30 <zipgroupfileset dir="${batik.dir}" includes="**/batik-xml-1.8.jar" />
31 </jar>
32 </target>
33
34 <target name="clean" description="clean up" >
35 <delete dir="${build}"/>
36 <delete file="${jarfile}"/>
37 </target>
38</project>
Note: See TracBrowser for help on using the repository browser.