1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="wirk3-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-imagemagick-component" />
|
---|
16 | <antcall target="prepare-ghostscript-component" />
|
---|
17 | <antcall target="prepare-ant-component" />
|
---|
18 | <antcall target="prepare-tomcat-component" />
|
---|
19 |
|
---|
20 | <antcall target="prepare-sourcecode-component" />
|
---|
21 |
|
---|
22 | <antcall target="prepare-source-release" />
|
---|
23 | </target>
|
---|
24 |
|
---|
25 | <target name="compress-components">
|
---|
26 | <antcall target="compress-core-component" />
|
---|
27 | <antcall target="compress-imagemagick-component" />
|
---|
28 | <antcall target="compress-ghostscript-component" />
|
---|
29 | <antcall target="compress-ant-component" />
|
---|
30 | <antcall target="compress-tomcat-component" />
|
---|
31 |
|
---|
32 | <!--<antcall target="compress-sourcecode-component" />-->
|
---|
33 |
|
---|
34 | <antcall target="compress-source-release" />
|
---|
35 |
|
---|
36 | </target>
|
---|
37 |
|
---|
38 | <!-- 3rd level -->
|
---|
39 | <target name="prepare-core-component">
|
---|
40 |
|
---|
41 | <!-- delete old stuff to create new components -->
|
---|
42 | <delete dir="components/tmp/core" quiet="true"/>
|
---|
43 | <mkdir dir="components/tmp/core"/>
|
---|
44 |
|
---|
45 | <copy todir="components/tmp/core" overwrite="true">
|
---|
46 | <fileset dir="distributions/web">
|
---|
47 | <include name="**/*"/>
|
---|
48 |
|
---|
49 | <!-- exclude ghostscript -->
|
---|
50 | <exclude name="gs2build/bin/windows/ghostscript/**/*"/>
|
---|
51 | <exclude name="gs2build/bin/windows/ghostscript"/>
|
---|
52 |
|
---|
53 | <!-- exclude imagemagick -->
|
---|
54 | <exclude name="gs2build/bin/windows/imagemagick/**/*"/>
|
---|
55 | <exclude name="gs2build/bin/windows/imagemagick"/>
|
---|
56 |
|
---|
57 | <!-- exclude sourcecode -->
|
---|
58 | <exclude name="src/**/*"/>
|
---|
59 | <exclude name="src"/>
|
---|
60 | <exclude name="gs2build/common-src/**/*"/>
|
---|
61 | <exclude name="gs2build/common-src"/>
|
---|
62 | <exclude name="gs2build/build-src/**/*"/>
|
---|
63 | <exclude name="gs2build/build-src"/>
|
---|
64 | <exclude name="gs2build/runtime-src/**/*"/>
|
---|
65 | <exclude name="gs2build/runtime-src"/>
|
---|
66 |
|
---|
67 | <!-- exclude ant -->
|
---|
68 | <exclude name="packages/ant/**/*"/>
|
---|
69 | <exclude name="packages/ant"/>
|
---|
70 |
|
---|
71 | <!-- exclude tomcat -->
|
---|
72 | <exclude name="packages/tomcat/**/*"/>
|
---|
73 | <exclude name="packages/tomcat"/>
|
---|
74 |
|
---|
75 | </fileset>
|
---|
76 | </copy>
|
---|
77 |
|
---|
78 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
79 | </target>
|
---|
80 |
|
---|
81 |
|
---|
82 | <target name="compress-core-component">
|
---|
83 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
|
---|
84 | </target>
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|
88 | <target name="prepare-imagemagick-component">
|
---|
89 | <delete dir="components/tmp/imagemagick" quiet="true"/>
|
---|
90 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
91 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
92 | <fileset dir="distributions/web/gs2build/bin/windows/">
|
---|
93 | <include name="imagemagick/**/*"/>
|
---|
94 | </fileset>
|
---|
95 | </copy>
|
---|
96 |
|
---|
97 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
|
---|
98 | </target>
|
---|
99 |
|
---|
100 | <target name="compress-imagemagick-component">
|
---|
101 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
|
---|
102 | </target>
|
---|
103 |
|
---|
104 |
|
---|
105 |
|
---|
106 | <target name="prepare-ghostscript-component">
|
---|
107 | <delete dir="components/tmp/ghostscript" quiet="true"/>
|
---|
108 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
109 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
110 | <fileset dir="distributions/web/gs2build/bin/windows/">
|
---|
111 | <include name="ghostscript/**/*"/>
|
---|
112 | </fileset>
|
---|
113 | </copy>
|
---|
114 |
|
---|
115 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
|
---|
116 | </target>
|
---|
117 |
|
---|
118 | <target name="compress-ghostscript-component">
|
---|
119 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
|
---|
120 | </target>
|
---|
121 |
|
---|
122 | <target name="prepare-sourcecode-component">
|
---|
123 | <delete dir="components/tmp/sourcecode" quiet="true"/>
|
---|
124 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
125 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
126 | <fileset dir="distributions/web">
|
---|
127 | <include name="src/**/*"/>
|
---|
128 | <include name="gs2build/common-src/**/*"/>
|
---|
129 | <include name="gs2build/build-src/**/*"/>
|
---|
130 | <include name="gs2build/runtime-src/**/*"/>
|
---|
131 | </fileset>
|
---|
132 | </copy>
|
---|
133 |
|
---|
134 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
135 | <zip destfile="components/Greenstone-${version}-win32-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
|
---|
136 | </target>
|
---|
137 |
|
---|
138 | <target name="compress-sourcecode-component">
|
---|
139 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
|
---|
140 | </target>
|
---|
141 |
|
---|
142 | <target name="prepare-ant-component">
|
---|
143 | <delete dir="components/tmp/ant" quiet="true"/>
|
---|
144 | <mkdir dir="components/tmp/ant"/>
|
---|
145 |
|
---|
146 | <copy todir="components/tmp/ant" overwrite="true">
|
---|
147 | <fileset dir="distributions/web/packages">
|
---|
148 | <include name="ant/**/*"/>
|
---|
149 | </fileset>
|
---|
150 | </copy>
|
---|
151 |
|
---|
152 | <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
|
---|
153 | </target>
|
---|
154 |
|
---|
155 | <target name="compress-ant-component">
|
---|
156 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ant.lzma ant.comp"/></exec>
|
---|
157 | </target>
|
---|
158 |
|
---|
159 | <target name="prepare-tomcat-component">
|
---|
160 | <delete dir="components/tmp/tomcat" quiet="true"/>
|
---|
161 | <mkdir dir="components/tmp/tomcat"/>
|
---|
162 | <copy todir="components/tmp/tomcat" overwrite="true">
|
---|
163 | <fileset dir="distributions/web/packages">
|
---|
164 | <include name="tomcat/**/*"/>
|
---|
165 | </fileset>
|
---|
166 | </copy>
|
---|
167 |
|
---|
168 | <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
|
---|
169 | </target>
|
---|
170 |
|
---|
171 | <target name="compress-tomcat-component">
|
---|
172 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 tomcat.lzma tomcat.comp"/></exec>
|
---|
173 | </target>
|
---|
174 |
|
---|
175 | <target name="compress-source-release">
|
---|
176 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 source-release.lzma source-release.comp"/></exec>
|
---|
177 | </target>
|
---|
178 |
|
---|
179 | </project>
|
---|