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

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

dont try to create the source distibution anymore as that is done by sork

File size: 5.5 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
[17423]22 </target>
[17652]23
24 <target name="compress-components">
25 <antcall target="compress-core-component" />
26 <antcall target="compress-ant-component" />
27 <antcall target="compress-tomcat-component" />
[17663]28 <antcall target="compress-imagemagick-component" />
29 <antcall target="compress-ghostscript-component" />
[17786]30
[17956]31 <antcall target="compress-zipped-binary-release" /> <!-- from init -->
[17814]32
[17652]33 </target>
34
35 <!-- 3rd level -->
[17659]36 <!-- core -->
[17423]37 <target name="prepare-core-component">
38
[17453]39 <delete dir="components/tmp/core"/>
[17423]40 <mkdir dir="components/tmp/core"/>
41
42 <copy todir="components/tmp/core" overwrite="true">
[17898]43 <fileset dir="distributions/web">
[17423]44 <include name="**/*"/>
45
46 <!-- exclude sourcecode -->
[17660]47 <exclude name="src"/>
[17447]48 <exclude name="src/**/*"/>
[17660]49 <exclude name="gs2build/common-src"/>
[17423]50 <exclude name="gs2build/common-src/**/*"/>
[17660]51 <exclude name="gs2build/build-src"/>
[17423]52 <exclude name="gs2build/build-src/**/*"/>
[17660]53 <exclude name="gs2build/runtime-src"/>
[17423]54 <exclude name="gs2build/runtime-src/**/*"/>
55
56 <!-- exclude ant -->
[17660]57 <exclude name="packages/ant"/>
[17423]58 <exclude name="packages/ant/**/*"/>
59
60 <!-- exclude tomcat -->
[17660]61 <exclude name="packages/tomcat"/>
[17423]62 <exclude name="packages/tomcat/**/*"/>
63
[17660]64 <!-- exclude imagemagick -->
65 <exclude name="gs2build/bin/darwin/imagemagick"/>
66 <exclude name="gs2build/bin/darwin/imagemagick/**/*"/>
67
[17423]68 </fileset>
[17706]69 </copy>
[17423]70
71 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
72 </target>
73
74 <target name="compress-core-component">
75 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
76 </target>
77
[17659]78 <!-- sourcecode -->
[17423]79 <target name="prepare-sourcecode-component">
[17453]80
81 <delete dir="components/tmp/sourcecode"/>
[17423]82 <mkdir dir="components/tmp/sourcecode"/>
[17453]83
[17423]84 <copy todir="components/tmp/sourcecode" overwrite="true">
[17898]85 <fileset dir="distributions/web">
[17423]86 <include name="src/**/*"/>
87 <include name="gs2build/common-src/**/*"/>
88 <include name="gs2build/build-src/**/*"/>
89 <include name="gs2build/runtime-src/**/*"/>
90 </fileset>
91 </copy>
92
[17956]93 <mkdir dir="products"/>
94 <tar destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz" basedir="components/tmp/sourcecode" compress="true"/>
[17423]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
[17659]101 <!-- ant -->
[17423]102 <target name="prepare-ant-component">
[17453]103
[17455]104 <delete dir="components/tmp/ant"/>
105 <mkdir dir="components/tmp/ant"/>
[17453]106
[17423]107 <copy todir="components/tmp/ant" overwrite="true">
[17898]108 <fileset dir="distributions/web/packages">
[17423]109 <include name="ant/**/*"/>
110 </fileset>
111 </copy>
112
113 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
114 </target>
115
116 <target name="compress-ant-component">
117 <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
118 </target>
119
[17659]120 <!-- tomcat -->
[17423]121 <target name="prepare-tomcat-component">
[17453]122
123 <delete dir="components/tmp/tomcat"/>
[17423]124 <mkdir dir="components/tmp/tomcat"/>
[17453]125
[17423]126 <copy todir="components/tmp/tomcat" overwrite="true">
[17898]127 <fileset dir="distributions/web/packages">
[17423]128 <include name="tomcat/**/*"/>
129 </fileset>
130 </copy>
131
132 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
133 </target>
134
135 <target name="compress-tomcat-component">
136 <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
[17659]137 </target>
[17652]138
[17659]139 <!-- imagemagick -->
140 <target name="prepare-imagemagick-component">
[17652]141
[17659]142 <delete dir="components/tmp/imagemagick"/>
143 <mkdir dir="components/tmp/imagemagick"/>
144
145 <copy todir="components/tmp/imagemagick" overwrite="true">
[17898]146 <fileset dir="distributions/web/gs2build/bin/darwin">
[17659]147 <include name="imagemagick/**/*"/>
[17652]148 </fileset>
149 </copy>
[17659]150
151 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
[17652]152 </target>
[17659]153
154 <target name="compress-imagemagick-component">
155 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
[17652]156 </target>
[17706]157
[17663]158 <!-- ghostscript -->
159 <target name="prepare-ghostscript-component">
160
161 <delete dir="components/tmp/ghostscript"/>
162 <mkdir dir="components/tmp/ghostscript"/>
163
164 <copy todir="components/tmp/ghostscript" overwrite="true">
[17898]165 <fileset dir="distributions/web/gs2build/bin/darwin">
[17663]166 <include name="ghostscript/**/*"/>
167 </fileset>
168 </copy>
169
170 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
171 </target>
172
173 <target name="compress-ghostscript-component">
174 <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
175 </target>
176
[17423]177</project>
Note: See TracBrowser for help on using the repository browser.