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

Last change on this file since 17786 was 17786, checked in by oranfry, 13 years ago

shifted the responsibility for the source release to the linux release kit. Made the source release contain a single component with the core and sourcecode mixed together

File size: 5.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-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-imagemagick-component" />
16 <antcall target="prepare-ghostscript-component" />
17 <antcall target="prepare-ant-component" />
18 <antcall target="prepare-tomcat-component" />
19 <!--<antcall target="prepare-sourcecode-component" />-->
20 </target>
21
22 <target name="compress-components">
23 <antcall target="compress-core-component" />
24 <antcall target="compress-imagemagick-component" />
25 <antcall target="compress-ghostscript-component" />
26 <antcall target="compress-ant-component" />
27 <antcall target="compress-tomcat-component" />
28 <!--<antcall target="compress-sourcecode-component" />-->
29 </target>
30
31 <!-- 3rd level -->
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 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
72 </target>
73
74
75 <target name="compress-core-component">
76 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
77 </target>
78
79
80
81 <target name="prepare-imagemagick-component">
82 <delete dir="components/tmp/imagemagick" quiet="true"/>
83 <mkdir dir="components/tmp/imagemagick"/>
84 <copy todir="components/tmp/imagemagick" overwrite="true">
85 <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
86 <include name="imagemagick/**/*"/>
87 </fileset>
88 </copy>
89
90 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
91 </target>
92
93 <target name="compress-imagemagick-component">
94 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
95 </target>
96
97
98
99 <target name="prepare-ghostscript-component">
100 <delete dir="components/tmp/ghostscript" quiet="true"/>
101 <mkdir dir="components/tmp/ghostscript"/>
102 <copy todir="components/tmp/ghostscript" overwrite="true">
103 <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
104 <include name="ghostscript/**/*"/>
105 </fileset>
106 </copy>
107
108 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
109 </target>
110
111 <target name="compress-ghostscript-component">
112 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
113 </target>
114
115 <target name="prepare-sourcecode-component">
116 <delete dir="components/tmp/sourcecode" quiet="true"/>
117 <mkdir dir="components/tmp/sourcecode"/>
118 <copy todir="components/tmp/sourcecode" overwrite="true">
119 <fileset dir="distribution/greenstone3">
120 <include name="src/**/*"/>
121 <include name="gs2build/common-src/**/*"/>
122 <include name="gs2build/build-src/**/*"/>
123 <include name="gs2build/runtime-src/**/*"/>
124 </fileset>
125 </copy>
126
127 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
128 <zip destfile="components/Greenstone-${version}-win32-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
129 </target>
130
131 <target name="compress-sourcecode-component">
132 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
133 </target>
134
135 <target name="prepare-ant-component">
136 <delete dir="components/tmp/ant" quiet="true"/>
137 <mkdir dir="components/tmp/ant"/>
138
139 <copy todir="components/tmp/ant" overwrite="true">
140 <fileset dir="distribution/greenstone3/packages">
141 <include name="ant/**/*"/>
142 </fileset>
143 </copy>
144
145 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
146 </target>
147
148 <target name="compress-ant-component">
149 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ant.lzma ant.comp"/></exec>
150 </target>
151
152 <target name="prepare-tomcat-component">
153 <delete dir="components/tmp/tomcat" quiet="true"/>
154 <mkdir dir="components/tmp/tomcat"/>
155 <copy todir="components/tmp/tomcat" overwrite="true">
156 <fileset dir="distribution/greenstone3/packages">
157 <include name="tomcat/**/*"/>
158 </fileset>
159 </copy>
160
161 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
162 </target>
163
164 <target name="compress-tomcat-component">
165 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 tomcat.lzma tomcat.comp"/></exec>
166 </target>
167
168</project>
Note: See TracBrowser for help on using the repository browser.