Last change
on this file since 34795 was 32368, checked in by donvip, 9 years ago |
seachart - make the build portable
|
File size:
960 bytes
|
Line | |
---|
1 | <project name="jplotter" 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="./jplotter.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}"/>
|
---|
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="jplotter.Jplotter"/>
|
---|
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.