-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
57 lines (49 loc) · 2.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
<project name="MultithreadedTC" default="distjar" basedir=".">
<property name="release.id" value="1.01" />
<property name="jarfile" value="MultithreadedTC-${release.id}.jar" />
<property name="jarfile14" value="MultithreadedTC-${release.id}-jdk14.jar" />
<property name="sourcename" value="MultithreadedTC-${release.id}-source" />
<property name="info.files" value="README.txt,LICENSE.txt,CHANGELOG.txt" />
<property name="all.info.files" value="${info.files},README-JDK14.txt" />
<!-- Create distribution jar -->
<target name="distjar">
<jar destfile="${jarfile}" update="true">
<fileset dir="bin" includes="edu/**/*class" />
<fileset dir="src" includes="edu/**/*.java" />
<fileset dir="." includes="${info.files}" />
</jar>
</target>
<!-- Create Source Distribution zip -->
<target name="sourcezip" depends="distjar,distjar-jdk14">
<zip destfile="${sourcename}.zip" update="true">
<zipfileset dir="." includes="src/**" excludes="**.svn**" prefix="${sourcename}"/>
<zipfileset dir="." includes="examples/**" excludes="**.svn**" prefix="${sourcename}"/>
<zipfileset dir="." includes="web/**" excludes="**.svn**,sanity/**" prefix="${sourcename}"/>
<zipfileset dir="." includes="${all.info.files}" prefix="${sourcename}"/>
<zipfileset dir="." includes=".project,.classpath,build.xml" prefix="${sourcename}"/>
<zipfileset dir="." includes="${jarfile}" prefix="${sourcename}"/>
<zipfileset dir="." includes="${jarfile14}" prefix="${sourcename}"/>
</zip>
</target>
<!-- Create Website distribution zip -->
<target name="webzip">
<zip destfile="MultithreadedTCWebsite.zip" update="true">
<fileset dir="web" includes="**" excludes="**.svn**" />
</zip>
</target>
<!-- Retro Tasks: Create a Jar for 1.4 -->
<!-- The 'retrotranslator' task creates a jar file with JDK 1.4 compatible class files.
This task requires all the jar files in the retrotranslator distribution to be in
the lib folder. Find these at http://retrotranslator.sourceforge.net/ -->
<target name="distjar-jdk14">
<path id="retroclasspath">
<fileset dir="lib" includes="**/*.jar"/>
</path>
<taskdef name="retrotranslator" classpathref="retroclasspath"
classname="net.sf.retrotranslator.transformer.RetrotranslatorTask" />
<retrotranslator destjar="${jarfile14}" verify="false">
<fileset dir="bin" includes="edu/**/*.class"/>
<fileset dir="." includes="${all.info.files}" />
</retrotranslator>
</target>
</project>