-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·29 lines (25 loc) · 970 Bytes
/
Copy pathbuild.xml
File metadata and controls
executable file
·29 lines (25 loc) · 970 Bytes
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
<project name="wyscript" default="build-wyjs">
<property name="version" value="0.1.0"/>
<target name="compile">
<javac debug="true" srcdir="src/" includeantruntime="true" includes="wyjs/**" excludes="wyjs/testing/**"/>
</target>
<target name="build-wyjs" depends="compile">
<mkdir dir="tmp"/>
<manifest file="tmp/MANIFEST.MF">
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="wyjs.Main"/>
<attribute name="Implementation-Version" value="${version}"/>
</manifest>
<jar destfile="lib/wyjs.jar" basedir="src" includes="wyjs/**/*.class" manifest="tmp/MANIFEST.MF"/>
<delete dir="tmp"/>
</target>
<target name="clean">
<delete includeEmptyDirs="true" failonerror="false">
<fileset file="lib/*.jar"/>
<fileset file="*.jar"/>
<fileset file="*.tgz"/>
<fileset dir="src" includes="**/*.class"/>
<fileset dir="tmp/" includes="**"/>
</delete>
</target>
</project>