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