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