|
-On these systems, the script used to launch Ant will have
+On these systems, the script used to launch Ant will have
problems if ANT_HOME is a long filename (i.e. a filename which is not
-of the format known as "8.3"). This is due to
-limitations in the OS's handling of the "for"
-batch-file statement. It is recommended, therefore, that Ant be
+of the format known as "8.3"). This is due to
+limitations in the OS's handling of the "for"
+batch-file statement. It is recommended, therefore, that Ant be
installed in a short, 8.3 path, such as C:\Ant.
|
@@ -114,7 +114,7 @@ installed in a
On these systems you will also need to configure more environment
space to cater for the environment variables used in the Ant lauch script.
- To do this, you will need to add or update the following line in
+ To do this, you will need to add or update the following line in
the config.sys file
shell=c:\command.com c:\ /p /e:32768
@@ -152,7 +152,7 @@ libraries may either be placed in Ant's lib directory, where they will be picked
automatically, or made available on the system CLASSPATH environment variable.
-Windows
+Windows and OS/2
Assume Ant is installed in c:\ant\ . The following sets up the
environment:
set ANT_HOME=c:\ant
diff --git a/docs/manual/running.html b/docs/manual/running.html
index fe73dc6dd..9e11288d0 100644
--- a/docs/manual/running.html
+++ b/docs/manual/running.html
@@ -161,17 +161,48 @@ set):
-The Unix launch script that come with Ant works correctly with Cygwin. You
-should not have any problems launching Ant form the Cygwin shell. It is important
+ The Unix launch script that come with Ant works correctly with Cygwin. You
+should not have any problems launching Ant form the Cygwin shell. It is important
to note however, that once Ant is runing it is part of the JDK which operates as
-a native Windows application. The JDK is not a Cygwin executable, and it therefore
+a native Windows application. The JDK is not a Cygwin executable, and it therefore
has no knowledge of the Cygwin paths, etc. In particular when using the <exec>
-task, executable names such as "/bin/sh" will not work, even though these
-work from the Cygwin shell from which Ant was launched. You can use an executable
+task, executable names such as "/bin/sh" will not work, even though these
+work from the Cygwin shell from which Ant was launched. You can use an executable
name such as "sh" and rely on that command being available in the Windows
path.
+
+The OS/2 lanuch script was developed so as it can perform complex task. It has two parts:
+ant.cmd which calls Ant and antenv.cmd which sets environment for Ant.
+Most often you will just call ant.cmd using the same command line options as described
+above. The behaviour can be modified by a number of ways explained below.
+
+Script ant.cmd first verifies whether the Ant environment is set correctly. The
+requirements are:
+
+- Environment variable
JAVA_HOME is set.
+- Environment variable
ANT_HOME is set.
+- environment variable
CLASSPATH is set and contains at least one element from
+JAVA_HOME and at least one element from ANT_HOME .
+
+
+If any of these conditions is violated, script antenv.cmd is called. This script
+first invokes configuration scripts if there exist: the system-wide configuration
+antconf.cmd from the %ETC% directory and then the user comfiguration
+antrc.cmd from the %HOME% directory. At this moment both
+JAVA_HOME and ANT_HOME must be defined because antenv.cmd
+now adds classes.zip or tools.jar (depending on version of JVM) and
+everything from %ANT_HOME%\lib except ant-*.jar to
+CLASSPATH . Finally ant.cmd calls per-directory configuration
+antrc.cmd . All settings made by ant.cmd are local and are undone when the
+script ends. The settings made by antenv.cmd are persistent during the lifetime of the
+shell (of course unless called automaticaly from ant.cmd ). It is thus possible to call
+antenv.cmd manually and modify some settings before calling ant.cmd .
+
+Scripts envset.cmd and runrc.cmd perform auxilliary tasks. All scripts
+have some documentation inside.
+
If you have installed Ant in the do-it-yourself way, Ant can be started
with:
diff --git a/docs/manual/runninglist.html b/docs/manual/runninglist.html
index e9ad3ec27..587aad9fd 100644
--- a/docs/manual/runninglist.html
+++ b/docs/manual/runninglist.html
@@ -16,6 +16,7 @@
Files
Environment Variables
Cygwin Users
+ OS/2 Users
Running Ant via Java
|