| 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 |
|
|---|
| 8 | <target name="init">
|
|---|
| 9 | <mkdir dir="${build}"/>
|
|---|
| 10 | </target>
|
|---|
| 11 |
|
|---|
| 12 | <target name="compile" depends="init" description="compile the source " >
|
|---|
| 13 | <javac includeantruntime="false" srcdir="${src}" destdir="${build}" encoding="UTF-8"/>
|
|---|
| 14 | </target>
|
|---|
| 15 |
|
|---|
| 16 | <target name="dist" depends="compile" description="generate the distribution" >
|
|---|
| 17 | <jar jarfile="${jarfile}" basedir="${build}" >
|
|---|
| 18 | <manifest>
|
|---|
| 19 | <attribute name="Main-Class" value="js57toosm.Js57toosm"/>
|
|---|
| 20 | <attribute name="Class-Path" value="$jarfile"/>
|
|---|
| 21 | </manifest>
|
|---|
| 22 | </jar>
|
|---|
| 23 | </target>
|
|---|
| 24 |
|
|---|
| 25 | <target name="clean" description="clean up" >
|
|---|
| 26 | <delete dir="${build}"/>
|
|---|
| 27 | <delete file="${jarfile}"/>
|
|---|
| 28 | </target>
|
|---|
| 29 | </project>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.