source: other-projects/trunk/realistic-books/packages/AntInstaller/templates/defaultproject/create-installer-template.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: 2.8 KB
Line 
1<?xml version="1.0"?>
2<!--
3this ant build file can be re-run with the following command if Ant is installer locally
4> ant -buildfile create-installer.xml
5or by running the script @PROJECT_ROOT@/@PROJECT_SHORT_NAME@/build-self-extractor.sh
6-->
7<!-- this file is creates an installer for the Project @PROJECT_NAME@ -->
8<project name="Create @PROJECT_NAME@ Installer" default="MakeNonExtractor" basedir=".">
9
10 <path id="taskdef.cp" path="@ANT_INSTALL_ROOT@/lib/ant-installer-ext.jar"/>
11 <taskdef
12 name="installer"
13 classname="org.tp23.antinstaller.taskdefs.Installer"
14 classpathref="taskdef.cp"/>
15
16
17 <property name="ANT_INSTALL_ROOT" value="@ANT_INSTALL_ROOT@"/>
18 <property name="PROJECT_NAME" value="@PROJECT_NAME@"/>
19 <property name="PROJECT_SHORT_NAME" value="@PROJECT_SHORT_NAME@"/>
20 <property name="PROJECT_ROOT" value="@PROJECT_ROOT@"/>
21 <property name="PROJECT_SRC" value="@PROJECT_SRC@"/>
22 <property name="PROJECT_LIB" value="@PROJECT_LIB@"/>
23 <property name="PROJECT_LIC" value="@PROJECT_LIC@"/>
24 <property name="PROJECT_BIN" value="@PROJECT_BIN@"/>
25 <property name="PROJECT_DOC" value="@PROJECT_DOC@"/>
26 <property name="PROJECT_CLASSES" value="@PROJECT_CLASSES@"/>
27
28 <property name="THIS_PROJECT_ROOT" value="${PROJECT_ROOT}/${PROJECT_SHORT_NAME}"/>
29
30 <!-- This task only needs to run once it can be deleted once the self-extract files exist on the build host -->
31 <target name="Base">
32 <echo message="Building NonExtractor runnable jar file"/>
33 </target>
34
35
36 <target name="MakeNonExtractor" depends="Base">
37
38 <installer file="${THIS_PROJECT_ROOT}/${PROJECT_SHORT_NAME}-installer.jar" compress="true"
39 extractType="NonExtractor"
40 installConfig="${THIS_PROJECT_ROOT}/antinstall-config.xml"
41 buildFile="${THIS_PROJECT_ROOT}/build.xml"
42 antInstallLib="${ANT_INSTALL_ROOT}/lib"
43 antLib="${ANT_INSTALL_ROOT}/antlib"
44 validateConfig="true"
45 icons="bluecurve">
46 <zipfileset fullpath="resources/License.txt" file="${PROJECT_LIC}"/>
47 <zipfileset dir="cp" includes="resources/*"/>
48 <!--SourceCode
49 <zipfileset dir="${PROJECT_SRC}" prefix="src">
50 <include name="**/*"/>
51 </zipfileset>
52 SourceCode-->
53 <!--Libraries
54 <zipfileset dir="${PROJECT_LIB}" prefix="lib">
55 <include name="**/*.jar"/>
56 </zipfileset>
57 Libraries-->
58 <!--Documentation
59 <zipfileset dir="${PROJECT_DOC}" prefix="docs">
60 <include name="**/*"/>
61 </zipfileset>
62 Documentation-->
63 <!--Classes
64 <zipfileset dir="${PROJECT_CLASSES}" prefix="classes">
65 <include name="**/*"/>
66 </zipfileset>
67 Classes-->
68 <!--Scripts
69 <zipfileset dir="${PROJECT_BIN}" prefix="bin" >
70 <include name="**/*.sh"/>
71 <include name="**/*.ksh"/>
72 <include name="**/*.csh"/>
73 <include name="**/*.cmd"/>
74 <include name="**/*.bat"/>
75 </zipfileset>
76 Scripts-->
77 </installer>
78 </target>
79
80
81</project>
Note: See TracBrowser for help on using the repository browser.