source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/script-auto/installer/install.cmd@ 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.7 KB
Line 
1@echo off
2REM #!/bin/sh
3
4REM # This install script runs the installer in the development directory
5REM # To create you own installers it is best to copy the structure
6REM # and scripts in the ./demo directoy
7
8REM # The default case runs the installer in an X session if it can
9REM # falling back to text if the Graphics environment is not available
10REM # This can be changed by uncommenting the if statement and the default
11REM # can be changed by replacing "text" with "swing" below
12REM # or passing the required option on the command line
13
14if "%JAVA_HOME%" == "" goto nojava
15
16set INTERFACE=default
17set COMMAND=%JAVA_HOME%\bin\java
18if "%1" == "text" goto settext
19if "%1" == "swing" goto setswing
20goto install
21
22:settext
23set COMMAND=%JAVA_HOME%\bin\java
24set INTERFACE=text
25goto install
26
27:setswing
28set COMMAND=start %JAVA_HOME%\bin\javaw
29set INTERFACE=swing
30goto install
31
32:install
33
34
35REM # Installer from command line classpath
36set CLASSPATH=..\..\..\..\lib\ant-installer.jar
37set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\ai-icons-eclipse.jar
38
39REM # JGoodies Look And Feel
40set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\jgoodies-edited-1_2_2.jar
41REM # Image resources
42set CLASSPATH=%CLASSPATH%;..\..\..\..\classes
43REM # Metouia (default) Look And Feel
44REM set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\metouia.jar
45
46REM # minimal ANT classpath requirements
47set CLASSPATH=%CLASSPATH%;..\..\..\..\antlib\ant.jar
48set CLASSPATH=%CLASSPATH%;..\..\..\..\antlib\ant-launcher.jar
49
50REM ### add other ant jars required here
51set CLASSPATH=%CLASSPATH%;cp
52REM #CLASSPATH=$CLASSPATH;.\antlib\ant-weblogic.jar;.\antlib\ant-javamail.jar
53
54%COMMAND% -classpath %CLASSPATH% org.tp23.antinstaller.runtime.ExecInstall %INTERFACE% .
55
56goto end
57
58:nojava
59echo you must install java to run this applicaiton
60goto end
61
62
63:end
Note: See TracBrowser for help on using the repository browser.