source: release-kits/lirk3/ant-scripts/create-components.xml@ 17964

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

fixes to calls to the tar task

File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk3-create-components" default="create-components">
3
4 <!-- create components from the distributions 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-ant-component" />
16 <antcall target="prepare-tomcat-component" />
17 <antcall target="prepare-imagemagick-component" />
18
19 <antcall target="prepare-sourcecode-component" />
20 </target>
21
22 <target name="compress-components">
23 <antcall target="compress-core-component" />
24 <antcall target="compress-ant-component" />
25 <antcall target="compress-tomcat-component" />
26 <antcall target="compress-imagemagick-component" />
27
28 <antcall target="compress-zipped-binary-release" /> <!-- from init -->
29
30 </target>
31
32 <!-- 3rd level -->
33
34 <!-- core -->
35 <target name="prepare-core-component">
36
37 <delete dir="components/tmp/core"/>
38 <mkdir dir="components/tmp/core"/>
39
40 <copy todir="components/tmp/core" overwrite="true">
41 <fileset dir="distributions/web">
42 <include name="**/*"/>
43
44 <!-- exclude sourcecode -->
45 <exclude name="src"/>
46 <exclude name="src/**/*"/>
47 <exclude name="gs2build/common-src"/>
48 <exclude name="gs2build/common-src/**/*"/>
49 <exclude name="gs2build/build-src"/>
50 <exclude name="gs2build/build-src/**/*"/>
51 <exclude name="gs2build/runtime-src"/>
52 <exclude name="gs2build/runtime-src/**/*"/>
53 <exclude name="packages/ant"/>
54 <exclude name="packages/ant/**/*"/>
55 <exclude name="packages/tomcat"/>
56 <exclude name="packages/tomcat/**/*"/>
57 <exclude name="distributions/web/gs2build/bin/linux/imagemagick"/>
58 <exclude name="distributions/web/gs2build/bin/linux/imagemagick/**/*"/>
59
60 </fileset>
61 </copy>
62
63 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
64 </target>
65
66 <target name="compress-core-component">
67 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
68 </target>
69
70 <!-- sourcecode -->
71 <target name="prepare-sourcecode-component">
72
73 <delete dir="components/tmp/sourcecode"/>
74 <mkdir dir="components/tmp/sourcecode"/>
75
76 <copy todir="components/tmp/sourcecode" overwrite="true">
77 <fileset dir="distributions/web">
78 <include name="src/**/*"/>
79 <include name="gs2build/common-src/**/*"/>
80 <include name="gs2build/build-src/**/*"/>
81 <include name="gs2build/runtime-src/**/*"/>
82 </fileset>
83 </copy>
84
85 <mkdir dir="products"/>
86 <tar destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz" basedir="components/tmp/sourcecode" compression="gzip" longfile="gnu"/>
87
88 </target>
89
90 <target name="compress-sourcecode-component">
91 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
92 </target>
93
94 <!-- ant -->
95 <target name="prepare-ant-component">
96
97 <delete dir="components/tmp/ant"/>
98 <mkdir dir="components/tmp/ant"/>
99
100 <copy todir="components/tmp/ant" overwrite="true">
101 <fileset dir="distributions/web/packages">
102 <include name="ant/**/*"/>
103 </fileset>
104 </copy>
105
106 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
107 </target>
108
109 <target name="compress-ant-component">
110 <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
111 </target>
112
113 <!-- tomcat -->
114 <target name="prepare-tomcat-component">
115
116 <delete dir="components/tmp/tomcat"/>
117 <mkdir dir="components/tmp/tomcat"/>
118
119 <copy todir="components/tmp/tomcat" overwrite="true">
120 <fileset dir="distributions/web/packages">
121 <include name="tomcat/**/*"/>
122 </fileset>
123 </copy>
124
125 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
126 </target>
127
128 <target name="compress-tomcat-component">
129 <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
130 </target>
131
132 <!-- imagemagick -->
133 <target name="prepare-imagemagick-component">
134
135 <delete dir="components/tmp/imagemagick"/>
136 <mkdir dir="components/tmp/imagemagick"/>
137
138 <copy todir="components/tmp/imagemagick" overwrite="true">
139 <fileset dir="distributions/web/gs2build/bin/linux">
140 <include name="imagemagick/**/*"/>
141 </fileset>
142 </copy>
143
144 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
145 </target>
146
147 <target name="compress-imagemagick-component">
148 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
149 </target>
150
151
152</project>
Note: See TracBrowser for help on using the repository browser.