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