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 selfextract 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="selfextract" 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 |
|
---|
30 | <property name="demo.dir" value="${installDir}/demo"/>
|
---|
31 |
|
---|
32 | <target name="selfextract">
|
---|
33 | <mkdir dir="../artifacts/selfextract"/>
|
---|
34 | <echo message="Building DEMO SELFEXTRACT"/>
|
---|
35 |
|
---|
36 | <installer file="../artifacts/selfextractpack.jar" compress="true"
|
---|
37 | extractType="SelfExtractor"
|
---|
38 | installConfig="../installer/antinstall-config.xml"
|
---|
39 | buildFile="../installer/build.xml"
|
---|
40 | antInstallLib="${installDir}/lib"
|
---|
41 | antLib="${installDir}/antlib"
|
---|
42 | validateConfig="true"
|
---|
43 | failOnError="true"
|
---|
44 | icons="bluecurve">
|
---|
45 | <fileset dir="${demo.dir}/artifacts">
|
---|
46 | <include name="installpack.zip"/>
|
---|
47 | </fileset>
|
---|
48 | <fileset dir="${demo.dir}/installclasspath">
|
---|
49 | <include name="resources/*"/>
|
---|
50 | </fileset>
|
---|
51 | </installer>
|
---|
52 |
|
---|
53 | </target>
|
---|
54 |
|
---|
55 | </project>
|
---|