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