source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/script-lang/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.8 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\xercesImpl.jar
37set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\xml-apis.jar
38set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\ant-installer.jar
39set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\ai-icons-eclipse.jar
40
41REM # JGoodies Look And Feel
42set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\jgoodies-edited-1_2_2.jar
43REM # Image resources
44set CLASSPATH=%CLASSPATH%;..\..\..\..\classes
45REM # Metouia (default) Look And Feel
46REM set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\metouia.jar
47
48REM # minimal ANT classpath requirements
49set CLASSPATH=%CLASSPATH%;..\..\..\..\antlib\ant.jar
50set CLASSPATH=%CLASSPATH%;..\..\..\..\antlib\ant-launcher.jar
51set CLASSPATH=%CLASSPATH%;cp
52
53REM ### add other ant jars required here
54REM #CLASSPATH=$CLASSPATH;.\antlib\ant-weblogic.jar;.\antlib\ant-javamail.jar
55
56%COMMAND% -classpath %CLASSPATH% org.tp23.antinstaller.runtime.ExecInstall %INTERFACE% .
57
58goto end
59
60:nojava
61echo you must install java to run this applicaiton
62goto end
63
64
65:end
Note: See TracBrowser for help on using the repository browser.