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

Last change on this file since 17786 was 17786, checked in by oranfry, 15 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
RevLine 
[17366]1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-create-components" default="create-components">
3
[17652]4 <!-- create components from the distribution folder -->
[17471]5
[17652]6 <!-- 1st level -->
[17366]7 <target name="create-components">
[17471]8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
[17366]10 </target>
[17652]11
12 <!-- 2nd level -->
[17471]13 <target name="prepare-components">
[17366]14 <antcall target="prepare-core-component" />
15 <antcall target="prepare-imagemagick-component" />
16 <antcall target="prepare-ghostscript-component" />
[17471]17 <antcall target="prepare-ant-component" />
18 <antcall target="prepare-tomcat-component" />
[17786]19 <!--<antcall target="prepare-sourcecode-component" />-->
[17366]20 </target>
21
[17471]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" />
[17786]28 <!--<antcall target="compress-sourcecode-component" />-->
[17657]29 </target>
[17366]30
[17652]31 <!-- 3rd level -->
[17366]32 <target name="prepare-core-component">
[17427]33
[17366]34 <!-- delete old stuff to create new components -->
[17428]35 <delete dir="components/tmp/core" quiet="true"/>
[17427]36 <mkdir dir="components/tmp/core"/>
[17366]37
38 <copy todir="components/tmp/core" overwrite="true">
[17422]39 <fileset dir="distribution/greenstone3">
40 <include name="**/*"/>
[17366]41
[17422]42 <!-- exclude ghostscript -->
43 <exclude name="gs2build/bin/windows/ghostscript/**/*"/>
[17471]44 <exclude name="gs2build/bin/windows/ghostscript"/>
[17422]45
46 <!-- exclude imagemagick -->
47 <exclude name="gs2build/bin/windows/imagemagick/**/*"/>
[17471]48 <exclude name="gs2build/bin/windows/imagemagick"/>
[17422]49
50 <!-- exclude sourcecode -->
[17447]51 <exclude name="src/**/*"/>
[17471]52 <exclude name="src"/>
[17422]53 <exclude name="gs2build/common-src/**/*"/>
[17471]54 <exclude name="gs2build/common-src"/>
[17422]55 <exclude name="gs2build/build-src/**/*"/>
[17471]56 <exclude name="gs2build/build-src"/>
[17422]57 <exclude name="gs2build/runtime-src/**/*"/>
[17471]58 <exclude name="gs2build/runtime-src"/>
[17422]59
60 <!-- exclude ant -->
61 <exclude name="packages/ant/**/*"/>
[17471]62 <exclude name="packages/ant"/>
[17422]63
64 <!-- exclude tomcat -->
65 <exclude name="packages/tomcat/**/*"/>
[17471]66 <exclude name="packages/tomcat"/>
[17422]67
68 </fileset>
[17366]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">
[17428]82 <delete dir="components/tmp/imagemagick" quiet="true"/>
[17427]83 <mkdir dir="components/tmp/imagemagick"/>
[17366]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">
[17428]100 <delete dir="components/tmp/ghostscript" quiet="true"/>
[17427]101 <mkdir dir="components/tmp/ghostscript"/>
[17366]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">
[17428]116 <delete dir="components/tmp/sourcecode" quiet="true"/>
[17427]117 <mkdir dir="components/tmp/sourcecode"/>
[17366]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" />
[17721]128 <zip destfile="components/Greenstone-${version}-win32-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
[17366]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">
[17428]136 <delete dir="components/tmp/ant" quiet="true"/>
[17427]137 <mkdir dir="components/tmp/ant"/>
138
[17366]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>
[17786]151
[17366]152 <target name="prepare-tomcat-component">
[17428]153 <delete dir="components/tmp/tomcat" quiet="true"/>
[17427]154 <mkdir dir="components/tmp/tomcat"/>
[17366]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.