source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/selfextract/build/build.xml@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 1.5 KB
Line 
1<?xml version="1.0"?>
2<!--
3
4This Ant script is used to package parts of the demo app to create an installer
5
6the selfextract target shows an example of creating a self extracting jar for the demo app
7
8run with ...
9
10ant -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>
Note: See TracBrowser for help on using the repository browser.