public class AntTool extends ConsoleTool
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANT_HOME_ENV
"ANT_HOME"
|
static java.lang.String |
ANT_HOME_PROP
"ant-home" as in VM arg "-Dant-home=..."
|
static java.lang.String |
ANT_TOOL_UNX
"ant"
|
static java.lang.String |
ANT_TOOL_WIN
"ant.bat"
|
static java.lang.String |
ANT_TOOLS_DIR
"bin" subdirectory Ant home
|
binDirectories, console| Modifier and Type | Method and Description |
|---|---|
Process2 |
ant(java.io.File workingDirectory,
java.lang.String... args) |
protected java.util.List<java.lang.String> |
getToolHomeEnvs()
called internally to get the list (1) of environment variable names to search for
the Ant tool home directory.
|
protected java.util.List<java.lang.String> |
getToolHomeProperties()
called internally to get the list (1) VM argument name to search for the
Ant tool home directory.
|
static AntTool |
instance()
TODO Do we need to keep this tool as a singleton?
If different users call
ConsoleTool.setToolHome(String) to set different tool-path, problem!!!But on one machine, it is rarely that user has different path for one tool. |
protected void |
modifyBinDirectories()
called internally to set the List (1) of tools directories to search for the Ant tool.
|
batch, batch, batch, exec, exec, exec, exec, getBinDirectories, getLastCommand, getOsFamilyName, getToolHome, isMacOS, isUnixOS, isWindowsOS, locateTool, needSearchRecursively, searchFile, setToolHomepublic static final java.lang.String ANT_HOME_PROP
public static final java.lang.String ANT_HOME_ENV
public static final java.lang.String ANT_TOOLS_DIR
public static final java.lang.String ANT_TOOL_WIN
public static final java.lang.String ANT_TOOL_UNX
public static AntTool instance()
ConsoleTool.setToolHome(String) to set different tool-path, problem!!!protected void modifyBinDirectories()
modifyBinDirectories in class ConsoleToolANT_TOOLS_DIRprotected java.util.List<java.lang.String> getToolHomeProperties()
getToolHomeProperties in class ConsoleToolANT_HOME_PROPprotected java.util.List<java.lang.String> getToolHomeEnvs()
getToolHomeEnvs in class ConsoleToolANT_HOME_ENVpublic Process2 ant(java.io.File workingDirectory, java.lang.String... args) throws java.io.IOException
java.io.IOExceptionCopyright © SAS Institute. All Rights Reserved.