-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
44 lines (40 loc) · 1.15 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<project name="Project" default="compile" basedir=".">
<path id="classpath">
<fileset dir="lib" includes="**/*.jar"/>
<fileset dir="libtest" includes="**/*.jar"/>
<pathelement path="build"/>
</path>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build"/>
<javac srcdir="src" destdir="build" classpathref="classpath" source="1.8" target="1.8"/>
<copy todir="build">
<fileset dir="resources" excludes="**/*.java"/>
</copy>
<javac srcdir="test" destdir="build" classpathref="classpath" source="1.8" target="1.8"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="dist"/>
<jar destfile="dist/jshellscriptengine.jar" basedir="build">
<fileset dir="build"/>
<restrict>
<archives>
<zips>
<fileset dir="lib" includes="**/*.jar"/>
</zips>
</archives>
</restrict>
</jar>
</target>
<target name="junit" depends="compile">
<junit fork="true" logfailedtests="false">
<classpath refid="classpath"/>
<batchtest>
<fileset dir="test" includes="**/*Test.java"/>
<formatter type="plain" usefile="false"/>
</batchtest>
</junit>
</target>
</project>