1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="wirk2-create-installer" default="create-installer">
|
---|
3 |
|
---|
4 | <target name="create-installer">
|
---|
5 | <antcall target="copy-installer-files"/>
|
---|
6 | <antcall target="make-installer-files-concrete"><param name="java.os" value="windows"/></antcall> <!-- from rk2-targets -->
|
---|
7 | <antcall target="compile-installer"/>
|
---|
8 | </target>
|
---|
9 |
|
---|
10 | <target name="copy-installer-files">
|
---|
11 | <echo>Copying installer files</echo>
|
---|
12 | <mkdir dir="${basedir}/installer/classes"/>
|
---|
13 | <copy todir="${basedir}/installer" file="${wirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
|
---|
14 | <copy todir="${basedir}/installer" file="${wirk2.home}/installer/build.xml" overwrite="true"/>
|
---|
15 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
16 | <fileset dir="${wirk2.home}/greenstone2/installer-classes"/>
|
---|
17 | <fileset dir="${wirk2.home}/windows/installer-classes"/>
|
---|
18 | <fileset dir="${wirk2.home}/packages/7za" includes="7za.exe"/>
|
---|
19 | <fileset file="${basedir}/distributions/web/LICENSE.txt"/>
|
---|
20 | </copy>
|
---|
21 |
|
---|
22 | <unjar src="${wirk2.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
|
---|
23 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
24 |
|
---|
25 | <unjar src="${wirk2.home}/lib/crypt.jar" dest="${basedir}/installer/classes"/>
|
---|
26 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
27 |
|
---|
28 | </target>
|
---|
29 |
|
---|
30 | <target name="compile-installer">
|
---|
31 |
|
---|
32 | <!-- binary installer -->
|
---|
33 | <copy file="${basedir}/installer/antinstall-config.xml" tofile="${basedir}/installer/antinstall-config-binary.xml"/>
|
---|
34 | <dcff file="${basedir}/installer/antinstall-config-binary.xml" startTag=".*<!-- start sourcecode -->.*" endTag=".*<!-- end sourcecode -->.*" />
|
---|
35 | <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
|
---|
36 | compress="true"
|
---|
37 | extractType="NonExtractor"
|
---|
38 | installConfig="${basedir}/installer/antinstall-config-binary.xml"
|
---|
39 | buildFile="${basedir}/installer/build.xml"
|
---|
40 | antInstallLib="${wirk2.home}/packages/ant-installer/lib"
|
---|
41 | antLib="${wirk2.home}/packages/ant/lib"
|
---|
42 | validateConfig="true"
|
---|
43 | icons="bluecurve">
|
---|
44 |
|
---|
45 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
46 | <zipfileset dir="${basedir}/components" includes="*.lzma" excludes="sourcecode.lzma" />
|
---|
47 | </installer>
|
---|
48 |
|
---|
49 | <!-- minimal installer -->
|
---|
50 | <copy file="${basedir}/installer/antinstall-config.xml" tofile="${basedir}/installer/antinstall-config-minimal.xml"/>
|
---|
51 | <dcff file="${basedir}/installer/antinstall-config-minimal.xml" startTag=".*<!-- start bundled components -->.*" endTag=".*<!-- end bundled components -->.*" />
|
---|
52 | <dcff file="${basedir}/installer/antinstall-config-minimal.xml" startTag=".*<!-- start sourcecode -->.*" endTag=".*<!-- end sourcecode -->.*" />
|
---|
53 | <installer file="${basedir}/installer/Greenstone-${version}-win32-minimal.jar"
|
---|
54 | compress="true"
|
---|
55 | extractType="NonExtractor"
|
---|
56 | installConfig="${basedir}/installer/antinstall-config-minimal.xml"
|
---|
57 | buildFile="${basedir}/installer/build.xml"
|
---|
58 | antInstallLib="${wirk2.home}/packages/ant-installer/lib"
|
---|
59 | antLib="${wirk2.home}/packages/ant/lib"
|
---|
60 | validateConfig="true"
|
---|
61 | icons="bluecurve">
|
---|
62 |
|
---|
63 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
64 | <zipfileset dir="${basedir}/components" includes="core.lzma" />
|
---|
65 | </installer>
|
---|
66 |
|
---|
67 | </target>
|
---|
68 |
|
---|
69 | </project>
|
---|