Line | |
---|
1 | <project name="jplotter" default="dist" basedir=".">
|
---|
2 | <property name="src" location="src"/>
|
---|
3 | <property name="build" location="build"/>
|
---|
4 | <property name="jarfile" location="./jplotter.jar"/>
|
---|
5 |
|
---|
6 | <target name="init">
|
---|
7 | <mkdir dir="${build}"/>
|
---|
8 | </target>
|
---|
9 |
|
---|
10 | <target name="compile" depends="init" description="compile the source " >
|
---|
11 | <javac includeantruntime="false" srcdir="${src}" destdir="${build}"/>
|
---|
12 | </target>
|
---|
13 |
|
---|
14 | <target name="dist" depends="compile" description="generate the distribution" >
|
---|
15 | <jar jarfile="${jarfile}" basedir="${build}" manifestencoding="UTF-8">
|
---|
16 | <manifest>
|
---|
17 | <attribute name="Main-Class" value="jplotter.Jplotter"/>
|
---|
18 | <attribute name="Class-Path" value="$jarfile"/>
|
---|
19 | </manifest>
|
---|
20 | </jar>
|
---|
21 | </target>
|
---|
22 |
|
---|
23 | <target name="clean" description="clean up" >
|
---|
24 | <delete dir="${build}"/>
|
---|
25 | <delete file="${jarfile}"/>
|
---|
26 | </target>
|
---|
27 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.