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
RevLine 
[17423]1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark3-create-components" default="create-components">
3
[17898]4 <!-- create components from the distributions folder -->
[17652]5
6 <!-- 1st level -->
[17423]7 <target name="create-components">
[17652]8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
[17423]10 </target>
11
[17652]12 <!-- 2nd level -->
13 <target name="prepare-components">
[17423]14 <antcall target="prepare-core-component" />
15 <antcall target="prepare-ant-component" />
16 <antcall target="prepare-tomcat-component" />
[17663]17 <antcall target="prepare-imagemagick-component" />
18 <antcall target="prepare-ghostscript-component" />
[17786]19
[17814]20 <antcall target="prepare-sourcecode-component" />
21
22 <antcall target="prepare-source-release" />
[17423]23 </target>
[17652]24
25 <target name="compress-components">
26 <antcall target="compress-core-component" />
27 <antcall target="compress-ant-component" />
28 <antcall target="compress-tomcat-component" />
[17663]29 <antcall target="compress-imagemagick-component" />
30 <antcall target="compress-ghostscript-component" />
[17786]31
32 <!--<antcall target="compress-sourcecode-component" />-->
[17814]33
34 <antcall target="compress-source-release" />
[17652]35 </target>
36
37 <!-- 3rd level -->
[17659]38 <!-- core -->
[17423]39 <target name="prepare-core-component">
40
[17453]41 <delete dir="components/tmp/core"/>
[17423]42 <mkdir dir="components/tmp/core"/>
43
44 <copy todir="components/tmp/core" overwrite="true">
[17898]45 <fileset dir="distributions/web">
[17423]46 <include name="**/*"/>
47
48 <!-- exclude sourcecode -->
[17660]49 <exclude name="src"/>
[17447]50 <exclude name="src/**/*"/>
[17660]51 <exclude name="gs2build/common-src"/>
[17423]52 <exclude name="gs2build/common-src/**/*"/>
[17660]53 <exclude name="gs2build/build-src"/>
[17423]54 <exclude name="gs2build/build-src/**/*"/>
[17660]55 <exclude name="gs2build/runtime-src"/>
[17423]56 <exclude name="gs2build/runtime-src/**/*"/>
57
58 <!-- exclude ant -->
[17660]59 <exclude name="packages/ant"/>
[17423]60 <exclude name="packages/ant/**/*"/>
61
62 <!-- exclude tomcat -->
[17660]63 <exclude name="packages/tomcat"/>
[17423]64 <exclude name="packages/tomcat/**/*"/>
65
[17660]66 <!-- exclude imagemagick -->
67 <exclude name="gs2build/bin/darwin/imagemagick"/>
68 <exclude name="gs2build/bin/darwin/imagemagick/**/*"/>
69
[17423]70 </fileset>
[17706]71 </copy>
[17423]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
[17659]80 <!-- sourcecode -->
[17423]81 <target name="prepare-sourcecode-component">
[17453]82
83 <delete dir="components/tmp/sourcecode"/>
[17423]84 <mkdir dir="components/tmp/sourcecode"/>
[17453]85
[17423]86 <copy todir="components/tmp/sourcecode" overwrite="true">
[17898]87 <fileset dir="distributions/web">
[17423]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" />
[17721]96 <zip destfile="components/Greenstone-${version}-MacOS-${processor}-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
[17423]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
[17659]103 <!-- ant -->
[17423]104 <target name="prepare-ant-component">
[17453]105
[17455]106 <delete dir="components/tmp/ant"/>
107 <mkdir dir="components/tmp/ant"/>
[17453]108
[17423]109 <copy todir="components/tmp/ant" overwrite="true">
[17898]110 <fileset dir="distributions/web/packages">
[17423]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
[17659]122 <!-- tomcat -->
[17423]123 <target name="prepare-tomcat-component">
[17453]124
125 <delete dir="components/tmp/tomcat"/>
[17423]126 <mkdir dir="components/tmp/tomcat"/>
[17453]127
[17423]128 <copy todir="components/tmp/tomcat" overwrite="true">
[17898]129 <fileset dir="distributions/web/packages">
[17423]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"/>
[17659]139 </target>
[17652]140
[17659]141 <!-- imagemagick -->
142 <target name="prepare-imagemagick-component">
[17652]143
[17659]144 <delete dir="components/tmp/imagemagick"/>
145 <mkdir dir="components/tmp/imagemagick"/>
146
147 <copy todir="components/tmp/imagemagick" overwrite="true">
[17898]148 <fileset dir="distributions/web/gs2build/bin/darwin">
[17659]149 <include name="imagemagick/**/*"/>
[17652]150 </fileset>
151 </copy>
[17659]152
153 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
[17652]154 </target>
[17659]155
156 <target name="compress-imagemagick-component">
157 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
[17652]158 </target>
[17706]159
[17663]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">
[17898]167 <fileset dir="distributions/web/gs2build/bin/darwin">
[17663]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
[17814]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
[17423]183</project>
Note: See TracBrowser for help on using the repository browser.