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

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

standardized these files

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