1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 |
|
---|
4 | This Ant script is used to package parts of the demo app to create an installer
|
---|
5 |
|
---|
6 | the nonextract target shows an example of creating a self extracting jar for the demo app
|
---|
7 |
|
---|
8 | run with ...
|
---|
9 |
|
---|
10 | ant -buildfile build-demo.xml
|
---|
11 |
|
---|
12 | -->
|
---|
13 | <project name="Create Demo Installer Zip Build" default="nonextract" basedir=".">
|
---|
14 |
|
---|
15 | <!-- Default location in installed tree -->
|
---|
16 | <property name="installDir" location="../../../.."/>
|
---|
17 |
|
---|
18 | <path id="taskdef.cp">
|
---|
19 | <fileset dir="${installDir}/lib">
|
---|
20 | <include name="ant-installer-ext.jar"/>
|
---|
21 | <include name="ant-installer.jar"/>
|
---|
22 | </fileset>
|
---|
23 | </path>
|
---|
24 |
|
---|
25 | <taskdef
|
---|
26 | name="installer"
|
---|
27 | classname="org.tp23.antinstaller.taskdefs.Installer"
|
---|
28 | classpathref="taskdef.cp"/>
|
---|
29 | <property name="demo.dir" value="${installDir}/demo"/>
|
---|
30 |
|
---|
31 | <target name="nonextract">
|
---|
32 | <mkdir dir="../artifacts/nonextract"/>
|
---|
33 | <echo message="Building DEMO NON-EXTRACT"/>
|
---|
34 | <installer file="../artifacts/nonextract-type-installer.jar" compress="true"
|
---|
35 | extractType="NonExtractor"
|
---|
36 | installConfig="../installer/antinstall-config.xml"
|
---|
37 | buildFile="../installer/build.xml"
|
---|
38 | antInstallLib="${installDir}/lib"
|
---|
39 | antLib="${installDir}/antlib"
|
---|
40 | validateConfig="true"
|
---|
41 | failOnError="true"
|
---|
42 | icons="bluecurve">
|
---|
43 | <fileset dir="${demo.dir}/artifacts" includes="installpack.zip"/>
|
---|
44 | <fileset dir="${demo.dir}/installclasspath">
|
---|
45 | <include name="resources/*"/>
|
---|
46 | </fileset>
|
---|
47 | <fileset dir="../installer">
|
---|
48 | <include name="build-alternative.xml"/>
|
---|
49 | <include name="antinstall-config-alternative.xml"/>
|
---|
50 | </fileset>
|
---|
51 | </installer>
|
---|
52 |
|
---|
53 | </target>
|
---|
54 |
|
---|
55 | </project>
|
---|