OpenMake Meister

GetAnt

 

This function returns the location of where Ant is installed. Ant should be executed from the Ant provided batch or shell scripts.  If the Ant batch or shell script cannot be found, the GetAnt function will then search for the Ant JAR file used for running Ant.

 

GetAnt will search for Ant in the following order:

 

   1.   Use Ant executable in 'ANT_HOME'

   2.   Use Ant.jar in 'ANT_HOME/lib'

   3.   Use Ant.jar found in 'ANT_HOME'

   4.   Use Ant executable in system 'PATH'

   5.   Use Ant.jar found in 'CLASSPATH'

   6.   Use Ant.jar found in 'PATH'

 

USAGE:

 $antCommand = GetAnt;

 

RETURNS:

 

Command-line statement used to run ant.