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