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

Last change on this file since 17447 was 17447, checked in by oranfry, 16 years ago

corrected a typo that was making the component sizes too big

File size: 5.6 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 <target name="create-components">
6 <antcall target="create-core-component" />
7 <antcall target="create-imagemagick-component" />
8 <antcall target="create-ghostscript-component" />
9 <antcall target="create-sourcecode-component" />
10 <antcall target="create-ant-component" />
11 <antcall target="create-tomcat-component" />
12 </target>
13
14
15 <target name="create-core-component">
16 <antcall target="prepare-core-component" />
17 <antcall target="compress-core-component" />
18 </target>
19
20 <target name="create-imagemagick-component">
21 <antcall target="prepare-imagemagick-component" />
22 <antcall target="compress-imagemagick-component" />
23 </target>
24
25
26 <target name="create-ghostscript-component">
27 <antcall target="prepare-ghostscript-component" />
28 <antcall target="compress-ghostscript-component" />
29 </target>
30
31
32 <target name="create-sourcecode-component">
33 <antcall target="prepare-sourcecode-component" />
34 <antcall target="compress-sourcecode-component" />
35 </target>
36
37
38 <target name="create-ant-component">
39 <antcall target="prepare-ant-component" />
40 <antcall target="compress-ant-component" />
41 </target>
42
43
44 <target name="create-tomcat-component">
45 <antcall target="prepare-tomcat-component" />
46 <antcall target="compress-tomcat-component" />
47 </target>
48
49
50 <target name="prepare-core-component">
51
52 <!-- delete old stuff to create new components -->
53 <delete dir="components/tmp/core" quiet="true"/>
54 <mkdir dir="components/tmp/core"/>
55
56 <copy todir="components/tmp/core" overwrite="true">
57 <fileset dir="distribution/greenstone3">
58 <include name="**/*"/>
59
60 <!-- exclude ghostscript -->
61 <exclude name="gs2build/bin/windows/ghostscript/**/*"/>
62
63 <!-- exclude imagemagick -->
64 <exclude name="gs2build/bin/windows/imagemagick/**/*"/>
65
66 <!-- exclude sourcecode -->
67 <exclude name="src/**/*"/>
68 <exclude name="gs2build/common-src/**/*"/>
69 <exclude name="gs2build/build-src/**/*"/>
70 <exclude name="gs2build/runtime-src/**/*"/>
71
72 <!-- exclude ant -->
73 <exclude name="packages/ant/**/*"/>
74
75 <!-- exclude tomcat -->
76 <exclude name="packages/tomcat/**/*"/>
77
78 </fileset>
79 </copy>
80
81 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
82 </target>
83
84
85 <target name="compress-core-component">
86 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
87 </target>
88
89
90
91 <target name="prepare-imagemagick-component">
92 <delete dir="components/tmp/imagemagick" quiet="true"/>
93 <mkdir dir="components/tmp/imagemagick"/>
94 <copy todir="components/tmp/imagemagick" overwrite="true">
95 <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
96 <include name="imagemagick/**/*"/>
97 </fileset>
98 </copy>
99
100 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
101 </target>
102
103 <target name="compress-imagemagick-component">
104 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
105 </target>
106
107
108
109 <target name="prepare-ghostscript-component">
110 <delete dir="components/tmp/ghostscript" quiet="true"/>
111 <mkdir dir="components/tmp/ghostscript"/>
112 <copy todir="components/tmp/ghostscript" overwrite="true">
113 <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
114 <include name="ghostscript/**/*"/>
115 </fileset>
116 </copy>
117
118 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
119 </target>
120
121 <target name="compress-ghostscript-component">
122 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
123 </target>
124
125 <target name="prepare-sourcecode-component">
126 <delete dir="components/tmp/sourcecode" quiet="true"/>
127 <mkdir dir="components/tmp/sourcecode"/>
128 <copy todir="components/tmp/sourcecode" overwrite="true">
129 <fileset dir="distribution/greenstone3">
130 <include name="src/**/*"/>
131 <include name="gs2build/common-src/**/*"/>
132 <include name="gs2build/build-src/**/*"/>
133 <include name="gs2build/runtime-src/**/*"/>
134 </fileset>
135 </copy>
136
137 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
138 </target>
139
140 <target name="compress-sourcecode-component">
141 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
142 </target>
143
144 <target name="prepare-ant-component">
145 <delete dir="components/tmp/ant" quiet="true"/>
146 <mkdir dir="components/tmp/ant"/>
147
148 <copy todir="components/tmp/ant" overwrite="true">
149 <fileset dir="distribution/greenstone3/packages">
150 <include name="ant/**/*"/>
151 </fileset>
152 </copy>
153
154 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
155 </target>
156
157 <target name="compress-ant-component">
158 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ant.lzma ant.comp"/></exec>
159 </target>
160
161
162
163 <target name="prepare-tomcat-component">
164 <delete dir="components/tmp/tomcat" quiet="true"/>
165 <mkdir dir="components/tmp/tomcat"/>
166 <copy todir="components/tmp/tomcat" overwrite="true">
167 <fileset dir="distribution/greenstone3/packages">
168 <include name="tomcat/**/*"/>
169 </fileset>
170 </copy>
171
172 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
173 </target>
174
175 <target name="compress-tomcat-component">
176 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 tomcat.lzma tomcat.comp"/></exec>
177 </target>
178
179
180
181</project>
Note: See TracBrowser for help on using the repository browser.