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

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

component fixes

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