source: release-kits/wirk3/ant-scripts/create-components.xml@ 17652

Last change on this file since 17652 was 17652, checked in by oranfry, 15 years ago

started source releases

File size: 6.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-create-components" default="create-components">
3
4 <!-- create components from the distribution folder -->
5
6 <!-- 1st level -->
7 <target name="create-components">
8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
10 </target>
11
12 <!-- 2nd level -->
13 <target name="prepare-components">
14 <antcall target="prepare-core-component" />
15 <antcall target="prepare-imagemagick-component" />
16 <antcall target="prepare-ghostscript-component" />
17 <antcall target="prepare-sourcecode-component" />
18 <antcall target="prepare-ant-component" />
19 <antcall target="prepare-tomcat-component" />
20 <antcall target="prepare-sourcecode-core-component" />
21 </target>
22
23 <target name="compress-components">
24 <antcall target="compress-core-component" />
25 <antcall target="compress-imagemagick-component" />
26 <antcall target="compress-ghostscript-component" />
27 <antcall target="compress-sourcecode-component" />
28 <antcall target="compress-ant-component" />
29 <antcall target="compress-tomcat-component" />
30 <antcall target="compress-sourcecode-core-component" />
31 </target
32
33 <!-- 3rd level -->
34 <target name="prepare-core-component">
35
36 <!-- delete old stuff to create new components -->
37 <delete dir="components/tmp/core" quiet="true"/>
38 <mkdir dir="components/tmp/core"/>
39
40 <copy todir="components/tmp/core" overwrite="true">
41 <fileset dir="distribution/greenstone3">
42 <include name="**/*"/>
43
44 <!-- exclude ghostscript -->
45 <exclude name="gs2build/bin/windows/ghostscript/**/*"/>
46 <exclude name="gs2build/bin/windows/ghostscript"/>
47
48 <!-- exclude imagemagick -->
49 <exclude name="gs2build/bin/windows/imagemagick/**/*"/>
50 <exclude name="gs2build/bin/windows/imagemagick"/>
51
52 <!-- exclude sourcecode -->
53 <exclude name="src/**/*"/>
54 <exclude name="src"/>
55 <exclude name="gs2build/common-src/**/*"/>
56 <exclude name="gs2build/common-src"/>
57 <exclude name="gs2build/build-src/**/*"/>
58 <exclude name="gs2build/build-src"/>
59 <exclude name="gs2build/runtime-src/**/*"/>
60 <exclude name="gs2build/runtime-src"/>
61
62 <!-- exclude ant -->
63 <exclude name="packages/ant/**/*"/>
64 <exclude name="packages/ant"/>
65
66 <!-- exclude tomcat -->
67 <exclude name="packages/tomcat/**/*"/>
68 <exclude name="packages/tomcat"/>
69
70 </fileset>
71 </copy>
72
73
74
75 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
76 </target>
77
78
79 <target name="compress-core-component">
80 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
81 </target>
82
83
84
85 <target name="prepare-imagemagick-component">
86 <delete dir="components/tmp/imagemagick" quiet="true"/>
87 <mkdir dir="components/tmp/imagemagick"/>
88 <copy todir="components/tmp/imagemagick" overwrite="true">
89 <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
90 <include name="imagemagick/**/*"/>
91 </fileset>
92 </copy>
93
94 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
95 </target>
96
97 <target name="compress-imagemagick-component">
98 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
99 </target>
100
101
102
103 <target name="prepare-ghostscript-component">
104 <delete dir="components/tmp/ghostscript" quiet="true"/>
105 <mkdir dir="components/tmp/ghostscript"/>
106 <copy todir="components/tmp/ghostscript" overwrite="true">
107 <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
108 <include name="ghostscript/**/*"/>
109 </fileset>
110 </copy>
111
112 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
113 </target>
114
115 <target name="compress-ghostscript-component">
116 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
117 </target>
118
119 <target name="prepare-sourcecode-component">
120 <delete dir="components/tmp/sourcecode" quiet="true"/>
121 <mkdir dir="components/tmp/sourcecode"/>
122 <copy todir="components/tmp/sourcecode" overwrite="true">
123 <fileset dir="distribution/greenstone3">
124 <include name="src/**/*"/>
125 <include name="gs2build/common-src/**/*"/>
126 <include name="gs2build/build-src/**/*"/>
127 <include name="gs2build/runtime-src/**/*"/>
128 </fileset>
129 </copy>
130
131 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
132 </target>
133
134 <target name="compress-sourcecode-component">
135 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
136 </target>
137
138 <target name="prepare-ant-component">
139 <delete dir="components/tmp/ant" quiet="true"/>
140 <mkdir dir="components/tmp/ant"/>
141
142 <copy todir="components/tmp/ant" overwrite="true">
143 <fileset dir="distribution/greenstone3/packages">
144 <include name="ant/**/*"/>
145 </fileset>
146 </copy>
147
148 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
149 </target>
150
151 <target name="compress-ant-component">
152 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ant.lzma ant.comp"/></exec>
153 </target>
154
155
156
157 <target name="prepare-tomcat-component">
158 <delete dir="components/tmp/tomcat" quiet="true"/>
159 <mkdir dir="components/tmp/tomcat"/>
160 <copy todir="components/tmp/tomcat" overwrite="true">
161 <fileset dir="distribution/greenstone3/packages">
162 <include name="tomcat/**/*"/>
163 </fileset>
164 </copy>
165
166 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
167 </target>
168
169 <target name="compress-tomcat-component">
170 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 tomcat.lzma tomcat.comp"/></exec>
171 </target>
172
173 <target name="prepare-sourcecode-core-component">
174 <delete dir="components/tmp/sourcecode-core"/>
175 <mkdir dir="components/tmp/sourcecode-core"/>
176
177 <copy todir="components/tmp/sourcecode-core" overwrite="true">
178 <fileset dir="distribution/source">
179 <include name="gli/**/*"/>
180 <include name="docs/**/*"/>
181 <include name="resources/**/*"/>
182 <include name="web/**/*"/>
183 <include name="gs2build/etc/**/*"/>
184 <include name="gs2build/setup.bash"/>
185 <include name="build.xml"/>
186 <include name="build.properties"/>
187 <include name="*.sh"/>
188 <include name="*.txt"/>
189 </fileset>
190 </copy>
191 <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
192 </target>
193
194 <target name="compress-sourcecode-core-component">
195 <!--<sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>-->
196 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode-core.lzma sourcecode-core.comp"/></exec>
197 </target>
198
199
200
201
202</project>
Note: See TracBrowser for help on using the repository browser.