source: release-kits/lirk3/bin/ant-installer/templates/defaultproject/README.txt@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 3.5 KB
Line 
1---+ Default Project Template Builder
2
3This template is a method of getting up and running with
4AntInstaller quickly. The template will help you create
5an installer for a Java project.
6
7
8---++ Output
9
10 * create-installer.xml - An ant build script to package the installer
11 * build.xml - An Ant script used by the installer
12 * antinstall-config.xml - The definition of the installer
13All of the above can be edited to suit your needs
14 * Optionally the script will run the create-installer.xml Ant script to make the Jar immediately
15
16
17---++ Usage
18
19Read this README first
20Change directory to the location of this README file
21Set the ANT_INSTALL_HOME variable to the directory where you have installed AntInstaller.
22Set JAVA_HOME
23> export ANT_INSTALL_HOME=/usr/local/AntInstaller-beta0.7.2
24Start the runtemplate.sh script
25> ./runtemplate.sh
26Follow the instructions
27
28---++ Project Structure
29
30AntInstaller launches and asks you for your project information
31Generally it is assumed that your projects follow this structure
32
33/projects_root/
34
35/projects_root/project-name/
36
37for example if you use eclipse and CVS this will be
38/workspace/cvs-module-name/
39
40By default the template selects the following subdirectories
41which can be modified.
42/projects_root/project-name/src/ - source code
43/projects_root/project-name/bin/ - scripts (these get chmod u+x) in the installer
44/projects_root/project-name/doc/ - documentation
45/projects_root/project-name/lib/ - Jars
46/projects_root/project-name/classes/ - err... classes?
47
48The template only lets you select one directory for each, dont worry
49AntInstaller itself is infinately configurable.
50
51
52First time you run the script you should let the template
53create a new empty directory for creating installers
54/usr/local/installers/
55From this directory subdirectories will be created for each project
56/usr/local/installers/project-name/
57
58---++ Configuring the installer
59
60This template is NOT designed to create you the final installer you will
61deploy. If you have a very simple standard project it may suffice,
62but it is expected that you will want to modify the XML files created
63to customise the build.
64
65Following the documentation on the web you can modify the
66antinstall-config.xml file to add extra pages and collect extra input
67when the user installs your application.
68http://antinstaller.sourceforge.net
69
70The build.xml file can be modified to customise the install proces
71that is run by AntInstaller on the users machine.
72You have the full power of Ant so you can easily
73 * move files around
74 * replace text
75 * Zip Unzip
76 * run scripts
77 * call Java
78 * run sub ant build.xml files
79 * call SQL files via JDBC
80 * fix line ending s
81 * and anything in the CoreTypes in Ant.
82
83The create-installer.xml file is an Ant script that creates the installer
84by modifying this file you can add extra resources to the final Jar
85such as images that you want in the installer or extra source directories.
86By adding Ant optional Jars to the installer you can then access any
87additional features of Ant during the install enabling you to
88 * Call SSH or Telnet commands
89 * SCP/ FTP files
90 * Send emails
91 * and anything in the OptionaTypes in Ant
92
93
94
95---++ Contributions
96
97This tool itself (obviously) uses AntInstaller.
98You are free to modify the scripts to extend the features of the tool.
99If you do I would encourage you to submit the changes back so
100everyone can benefit from your enhancement.
101It is a good example of using AntInstaller to acheive tasks other
102than just installing apps.
103
104
105
106
107
108
109
110
111
112
113
114
115
Note: See TracBrowser for help on using the repository browser.