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

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

fixes to calls to the tar task

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