source: release-kits/mark3/ant-scripts/create-components.xml@ 17898

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

Standardised names of directories used in release kits

  • gsdl and greenstone3 -> compiled
  • distribution and distributions -> distributions
  • greenstone3 and web -> web

And, expect more specifically named properties files, e.g., lirk3-build.properties, wirk2-build.properties

File size: 5.8 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark3-create-components" default="create-components">
3
4 <!-- create components from the distributions 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-ant-component" />
16 <antcall target="prepare-tomcat-component" />
17 <antcall target="prepare-imagemagick-component" />
18 <antcall target="prepare-ghostscript-component" />
19
20 <antcall target="prepare-sourcecode-component" />
21
22 <antcall target="prepare-source-release" />
23 </target>
24
25 <target name="compress-components">
26 <antcall target="compress-core-component" />
27 <antcall target="compress-ant-component" />
28 <antcall target="compress-tomcat-component" />
29 <antcall target="compress-imagemagick-component" />
30 <antcall target="compress-ghostscript-component" />
31
32 <!--<antcall target="compress-sourcecode-component" />-->
33
34 <antcall target="compress-source-release" />
35 </target>
36
37 <!-- 3rd level -->
38 <!-- core -->
39 <target name="prepare-core-component">
40
41 <delete dir="components/tmp/core"/>
42 <mkdir dir="components/tmp/core"/>
43
44 <copy todir="components/tmp/core" overwrite="true">
45 <fileset dir="distributions/web">
46 <include name="**/*"/>
47
48 <!-- exclude sourcecode -->
49 <exclude name="src"/>
50 <exclude name="src/**/*"/>
51 <exclude name="gs2build/common-src"/>
52 <exclude name="gs2build/common-src/**/*"/>
53 <exclude name="gs2build/build-src"/>
54 <exclude name="gs2build/build-src/**/*"/>
55 <exclude name="gs2build/runtime-src"/>
56 <exclude name="gs2build/runtime-src/**/*"/>
57
58 <!-- exclude ant -->
59 <exclude name="packages/ant"/>
60 <exclude name="packages/ant/**/*"/>
61
62 <!-- exclude tomcat -->
63 <exclude name="packages/tomcat"/>
64 <exclude name="packages/tomcat/**/*"/>
65
66 <!-- exclude imagemagick -->
67 <exclude name="gs2build/bin/darwin/imagemagick"/>
68 <exclude name="gs2build/bin/darwin/imagemagick/**/*"/>
69
70 </fileset>
71 </copy>
72
73 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
74 </target>
75
76 <target name="compress-core-component">
77 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
78 </target>
79
80 <!-- sourcecode -->
81 <target name="prepare-sourcecode-component">
82
83 <delete dir="components/tmp/sourcecode"/>
84 <mkdir dir="components/tmp/sourcecode"/>
85
86 <copy todir="components/tmp/sourcecode" overwrite="true">
87 <fileset dir="distributions/web">
88 <include name="src/**/*"/>
89 <include name="gs2build/common-src/**/*"/>
90 <include name="gs2build/build-src/**/*"/>
91 <include name="gs2build/runtime-src/**/*"/>
92 </fileset>
93 </copy>
94
95 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
96 <zip destfile="components/Greenstone-${version}-MacOS-${processor}-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
97 </target>
98
99 <target name="compress-sourcecode-component">
100 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
101 </target>
102
103 <!-- ant -->
104 <target name="prepare-ant-component">
105
106 <delete dir="components/tmp/ant"/>
107 <mkdir dir="components/tmp/ant"/>
108
109 <copy todir="components/tmp/ant" overwrite="true">
110 <fileset dir="distributions/web/packages">
111 <include name="ant/**/*"/>
112 </fileset>
113 </copy>
114
115 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
116 </target>
117
118 <target name="compress-ant-component">
119 <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
120 </target>
121
122 <!-- tomcat -->
123 <target name="prepare-tomcat-component">
124
125 <delete dir="components/tmp/tomcat"/>
126 <mkdir dir="components/tmp/tomcat"/>
127
128 <copy todir="components/tmp/tomcat" overwrite="true">
129 <fileset dir="distributions/web/packages">
130 <include name="tomcat/**/*"/>
131 </fileset>
132 </copy>
133
134 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
135 </target>
136
137 <target name="compress-tomcat-component">
138 <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
139 </target>
140
141 <!-- imagemagick -->
142 <target name="prepare-imagemagick-component">
143
144 <delete dir="components/tmp/imagemagick"/>
145 <mkdir dir="components/tmp/imagemagick"/>
146
147 <copy todir="components/tmp/imagemagick" overwrite="true">
148 <fileset dir="distributions/web/gs2build/bin/darwin">
149 <include name="imagemagick/**/*"/>
150 </fileset>
151 </copy>
152
153 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
154 </target>
155
156 <target name="compress-imagemagick-component">
157 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
158 </target>
159
160 <!-- ghostscript -->
161 <target name="prepare-ghostscript-component">
162
163 <delete dir="components/tmp/ghostscript"/>
164 <mkdir dir="components/tmp/ghostscript"/>
165
166 <copy todir="components/tmp/ghostscript" overwrite="true">
167 <fileset dir="distributions/web/gs2build/bin/darwin">
168 <include name="ghostscript/**/*"/>
169 </fileset>
170 </copy>
171
172 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
173 </target>
174
175 <target name="compress-ghostscript-component">
176 <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
177 </target>
178
179 <target name="compress-source-release">
180 <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/>
181 </target>
182
183</project>
Note: See TracBrowser for help on using the repository browser.