-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.xml
executable file
·127 lines (118 loc) · 3.75 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="Windows-31J" ?>
<project name="Shimeji-ee" basedir="." default="zip">
<property name="version" value="1.0.9" />
<target name="clean">
<delete dir="target" />
<mkdir dir="target" />
</target>
<target name="compile" depends="clean">
<mkdir dir="target/classes" />
<javac destdir="target/classes" target="1.6" source="1.6" debug="yes" optimize="yes">
<src path="src"/>
<src path="src_win"/>
<src path="src_mac"/>
<src path="src_generic"/>
<classpath>
<fileset dir="lib" />
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="target/Shimeji-ee.jar" basedir="target/classes" manifest="MANIFEST.MF" />
</target>
<target name="zip" depends="jar">
<zip destfile="target/src.zip">
<fileset dir=".">
<include name="**/*" />
<exclude name="target/**/*" />
<exclude name="target" />
<exclude name="bin/**/*" />
<exclude name="bin" />
<exclude name=".settings/**" />
<exclude name=".settings" />
<exclude name=".classpath" />
<exclude name=".project" />
<exclude name="*.log" />
</fileset>
</zip>
<ant target="generate_package">
<property name="edition" value="Calm" />
</ant>
<ant target="generate_package">
<property name="edition" value="Professional" />
</ant>
<ant target="generate_package">
<property name="edition" value="Mischievous" />
</ant>
</target>
<target name="generate_package">
<ant target="zip_package">
<property name="edition" value="${edition}" />
</ant>
<ant target="gzip_package">
<property name="edition" value="${edition}" />
</ant>
</target>
<target name="zip_package">
<zip destfile="target/Shimeji-ee_${version}_${edition}.zip">
<fileset dir="target">
<include name="Shimeji-ee.jar" />
<include name="src.zip" />
</fileset>
<mappedresources>
<fileset dir="conf">
<include name="${edition}Behavior.xml" />
</fileset>
<globmapper from="*.xml" to="conf/behaviors.xml" />
</mappedresources>
<fileset dir=".">
<include name="Shimeji-ee.exe" />
<include name="Shimeji-ee.bat" />
<include name="ShimejiHomePage.url" />
<include name="Shimeji-eeHomePage.url" />
<include name="originallicence.txt" />
<include name="originalreadme.txt" />
<include name="licence.txt" />
<include name="readme.txt" />
<include name="changelog.txt" />
<include name="img/**/*" />
<include name="conf/**/*" />
<exclude name="conf/behaviors.xml" />
<exclude name="conf/*Behavior.xml" />
<include name="lib/*" />
</fileset>
</zip>
</target>
<target name="gzip_package">
<tar destfile="target/Shimeji-ee_${version}_${edition}.tar.gz" compression="gzip">
<tarfileset dir="target">
<include name="Shimeji-ee.jar" />
<include name="src.zip" />
</tarfileset>
<mappedresources>
<fileset dir="conf">
<include name="${edition}Behavior.xml" />
</fileset>
<globmapper from="*.xml" to="conf/behaviors.xml" />
</mappedresources>
<tarfileset dir="." filemode="755">
<include name="Shimeji-ee.sh" />
<include name="Shimeji-ee.app/" />
</tarfileset>
<tarfileset dir=".">
<include name="ShimejiHomePage.url" />
<include name="Shimeji-eeHomePage.url" />
<include name="originallicence.txt" />
<include name="originalreadme.txt" />
<include name="licence.txt" />
<include name="readme.txt" />
<include name="changelog.txt" />
<include name="img/**/*" />
<include name="conf/**/*" />
<exclude name="conf/behaviors.xml" />
<exclude name="conf/*Behavior.xml" />
<include name="lib/*" />
</tarfileset>
</tar>
</target>
</project>