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="lang.dir" value="/usr/local/bin/commons-lang3-3.4/"/>
|
---|
6 | <path id="classpath">
|
---|
7 | <fileset dir="${lang.dir}" includes="**/commons-lang3-3.4.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}" >
|
---|
20 | <manifest>
|
---|
21 | <attribute name="Main-Class" value="js57toosm.Js57toosm"/>
|
---|
22 | <attribute name="Class-Path" value="${jarfile}"/>
|
---|
23 | </manifest>
|
---|
24 | <zipgroupfileset dir="${lang.dir}" includes="**/commons-lang3-3.4.jar" />
|
---|
25 | </jar>
|
---|
26 | </target>
|
---|
27 |
|
---|
28 | <target name="clean" description="clean up">
|
---|
29 | <delete dir="${build}"/>
|
---|
30 | <delete file="${jarfile}"/>
|
---|
31 | </target>
|
---|
32 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.