source: release-kits/lirk3/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.3 KB
RevLine 
[17422]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 -->
[17652]5
6 <!-- 1st level -->
[17422]7 <target name="create-components">
[17645]8 <antcall target="prepare-components" />
9 <antcall target="compress-components" />
[17422]10 </target>
11
[17652]12 <!-- 2nd level -->
[17645]13 <target name="prepare-components">
[17422]14 <antcall target="prepare-core-component" />
[17645]15 <antcall target="prepare-ant-component" />
16 <antcall target="prepare-tomcat-component" />
17 <antcall target="prepare-imagemagick-component" />
[17786]18
19 <antcall target="prepare-sourcecode-component" />
20
21 <antcall target="prepare-source-release" />
[17422]22 </target>
23
[17645]24 <target name="compress-components">
25 <antcall target="compress-core-component" />
26 <antcall target="compress-ant-component" />
27 <antcall target="compress-tomcat-component" />
28 <antcall target="compress-imagemagick-component" />
[17786]29
30 <!--<antcall target="compress-sourcecode-component" />-->
31
32 <antcall target="compress-source-release" />
[17422]33 </target>
[17645]34
[17652]35 <!-- 3rd level -->
[17659]36
37 <!-- core -->
[17422]38 <target name="prepare-core-component">
39
[17446]40 <delete dir="components/tmp/core"/>
[17422]41 <mkdir dir="components/tmp/core"/>
42
43 <copy todir="components/tmp/core" overwrite="true">
44 <fileset dir="distribution/greenstone3">
45 <include name="**/*"/>
46
47 <!-- exclude sourcecode -->
[17645]48 <exclude name="src"/>
[17447]49 <exclude name="src/**/*"/>
[17645]50 <exclude name="gs2build/common-src"/>
[17422]51 <exclude name="gs2build/common-src/**/*"/>
[17645]52 <exclude name="gs2build/build-src"/>
[17422]53 <exclude name="gs2build/build-src/**/*"/>
[17645]54 <exclude name="gs2build/runtime-src"/>
[17422]55 <exclude name="gs2build/runtime-src/**/*"/>
[17645]56 <exclude name="packages/ant"/>
[17422]57 <exclude name="packages/ant/**/*"/>
[17645]58 <exclude name="packages/tomcat"/>
[17422]59 <exclude name="packages/tomcat/**/*"/>
[17645]60 <exclude name="distributions/greenstone3/gs2build/bin/linux/imagemagick"/>
61 <exclude name="distributions/greenstone3/gs2build/bin/linux/imagemagick/**/*"/>
[17422]62
63 </fileset>
64 </copy>
65
66 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
67 </target>
68
69 <target name="compress-core-component">
70 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
71 </target>
[17659]72
73 <!-- sourcecode -->
[17422]74 <target name="prepare-sourcecode-component">
[17446]75
76 <delete dir="components/tmp/sourcecode"/>
[17422]77 <mkdir dir="components/tmp/sourcecode"/>
[17446]78
[17422]79 <copy todir="components/tmp/sourcecode" overwrite="true">
80 <fileset dir="distribution/greenstone3">
81 <include name="src/**/*"/>
82 <include name="gs2build/common-src/**/*"/>
83 <include name="gs2build/build-src/**/*"/>
84 <include name="gs2build/runtime-src/**/*"/>
85 </fileset>
86 </copy>
87
[17721]88 <zip destfile="components/Greenstone-${version}-linux-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
[17422]89 </target>
90
91 <target name="compress-sourcecode-component">
92 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
93 </target>
[17659]94
95 <!-- ant -->
[17422]96 <target name="prepare-ant-component">
[17446]97
98 <delete dir="components/tmp/ant"/>
[17422]99 <mkdir dir="components/tmp/ant"/>
[17446]100
[17422]101 <copy todir="components/tmp/ant" overwrite="true">
102 <fileset dir="distribution/greenstone3/packages">
103 <include name="ant/**/*"/>
104 </fileset>
105 </copy>
106
107 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
108 </target>
109
110 <target name="compress-ant-component">
111 <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
112 </target>
113
[17659]114 <!-- tomcat -->
[17422]115 <target name="prepare-tomcat-component">
[17446]116
117 <delete dir="components/tmp/tomcat"/>
[17422]118 <mkdir dir="components/tmp/tomcat"/>
[17446]119
[17422]120 <copy todir="components/tmp/tomcat" overwrite="true">
121 <fileset dir="distribution/greenstone3/packages">
122 <include name="tomcat/**/*"/>
123 </fileset>
124 </copy>
125
126 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
127 </target>
128
129 <target name="compress-tomcat-component">
130 <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
[17645]131 </target>
132
[17659]133 <!-- imagemagick -->
[17645]134 <target name="prepare-imagemagick-component">
135
136 <delete dir="components/tmp/imagemagick"/>
137 <mkdir dir="components/tmp/imagemagick"/>
138
139 <copy todir="components/tmp/imagemagick" overwrite="true">
140 <fileset dir="distribution/greenstone3/gs2build/bin/linux">
141 <include name="imagemagick/**/*"/>
142 </fileset>
143 </copy>
144
145 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
146 </target>
147
148 <target name="compress-imagemagick-component">
149 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
150 </target>
[17652]151
[17786]152
153 <!-- sourcecode-release -->
154 <target name="prepare-source-release">
155 <delete dir="components/tmp/source-release"/>
156 <mkdir dir="components/tmp/source-release"/>
157
158 <copy todir="components/tmp/source-release" overwrite="true">
159 <fileset dir="distribution/source"/>
160 </copy>
161 <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false"/>
162 </target>
163
164 <target name="compress-source-release">
165 <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/>
166 </target>
167
168
[17422]169</project>
Note: See TracBrowser for help on using the repository browser.