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

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

started source releases

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