source: release-kits/lirk3/ant-scripts/create-components.xml@ 17652

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

started source releases

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