forked from noties/ScriptJava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
28 lines (27 loc) · 974 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<project default="jar">
<property name="build" location="build"/>
<property name="classesdir" location="${build}/classes"/>
<property name="jardir" location="${build}/jar"/>
<property name="libdir" location="libs"/>
<property name="destjar" location="${jardir}/ScriptJava.jar"/>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${libdir}"/>
</target>
<target name="compile">
<mkdir dir="${classesdir}"/>
<javac srcdir="src" destdir="${classesdir}"/>
</target>
<target name="jar" depends="compile" >
<mkdir dir="${jardir}"/>
<jar destfile="${destjar}" basedir="${classesdir}">
<manifest>
<attribute name="Main-Class" value="scriptjava.Main"/>
</manifest>
</jar>
</target>
<target name="install" depends="jar">
<mkdir dir="${libdir}"/>
<copy file="${destjar}" todir="${libdir}"/>
</target>
</project>