source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/manytargets/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.4 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 nonextract 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="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/manytargets"/>
33 <echo message="Building DEMO NON-EXTRACT"/>
34 <installer file="../artifacts/manytargets-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 </installer>
48
49 </target>
50
51</project>
Note: See TracBrowser for help on using the repository browser.