-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.xml
More file actions
66 lines (58 loc) · 2.64 KB
/
Copy pathbuild.xml
File metadata and controls
66 lines (58 loc) · 2.64 KB
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
58
59
60
61
62
63
64
65
66
<?xml version="1.0" ?>
<project default="package" basedir=".">
<target name="package">
<jar id="files" zipfile="${file.jar}">
<fileset dir="bin"><patternset refid="the.patternset"/></fileset>
<fileset dir="src"><patternset refid="the.patternset"/></fileset>
<zipfileset src="lib/akuhn-util-r28011.jar"/>
</jar>
<zipfileset id="files" src="${file.jar}"/>
<pathconvert property="listing" refid="files" pathsep="${line.separator}">
<globmapper from="${basedir}${file.separator}*" to="*"/>
</pathconvert>
<echo message="${listing}"/>
</target>
<target name="lib-package">
<jar id="files" zipfile="fame-lib.jar">
<fileset dir="bin"><patternset refid="the.lib-patternset"/></fileset>
<fileset dir="src"><patternset refid="the.lib-patternset"/></fileset>
</jar>
<zipfileset id="files" src="fame-lib.jar"/>
<pathconvert property="listing" refid="files" pathsep="${line.separator}">
<globmapper from="${basedir}${file.separator}*" to="*"/>
</pathconvert>
<echo message="${listing}"/>
</target>
<!--from http://www.innovationontherun.com/creating-a-build-number-with-ant-and-subversion-->
<exec outputproperty="svnversion" executable="svnversion" dir=".">
<arg line="-n -c" />
<redirector>
<outputfilterchain>
<tokenfilter>
<replaceregex pattern="^[0-9]*:?" replace="" flags="g"/>
</tokenfilter>
</outputfilterchain>
</redirector>
</exec>
<property name="file.jar" value="fame-r${svnversion}.jar"/>
<property name="include.sources" value=""/>
<property name="DONT-include.tests" value=""/>
<patternset id="the.patternset">
<include name="COPYING*"/>
<include name="ch/**/*.java" if="include.sources"/>
<include name="ch/**/*.class"/>
<include name="**/template.txt"/>
<exclude name="ch/**/*Test" unless="include.tests"/>
<exclude name="ch/**/*CodeGen" unless="include.tests"/>
<exclude name="ch/**/rpg/*" unless="include.tests"/>
</patternset>
<patternset id="the.lib-patternset">
<include name="COPYING*"/>
<include name="ch/**/*.java"/>
<include name="ch/**/*.class"/>
<include name="**/template.txt"/>
<exclude name="ch/**/*Test"/>
<exclude name="ch/**/*CodeGen"/>
<exclude name="ch/**/rpg/*"/>
</patternset>
</project>