|
|||||||||
| Home >> All >> org >> eclipse >> ant >> internal >> ui >> [ antsupport overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.ant.internal.ui.antsupport
Class InternalAntRunner

java.lang.Objectorg.eclipse.ant.internal.ui.antsupport.InternalAntRunner
- public class InternalAntRunner
- extends java.lang.Object
Eclipse application entry point into Ant in a separate VM. Derived from the original Ant Main class to ensure that the functionality is equivalent when running in the platform.
| Field Summary | |
private boolean |
allowInput
Indicates whether this build is to support interactive input |
private java.lang.String |
antVersionNumber
Cache of the Ant version number when it has been loaded |
private java.lang.String |
buildFileLocation
|
private java.util.List |
buildListeners
|
private org.apache.tools.ant.BuildLogger |
buildLogger
|
private org.apache.tools.ant.Project |
currentProject
|
private java.lang.String |
defaultTarget
|
private java.util.Map |
eclipseSpecifiedTasks
|
private java.util.Map |
eclipseSpecifiedTypes
|
private boolean |
emacsMode
Indicates whether output to the log is to be unadorned. |
private java.io.PrintStream |
err
Stream that we are using for logging error messages |
private java.lang.String[] |
extraArguments
Extra arguments to be parsed as command line arguments. |
private java.lang.String |
inputHandlerClassname
The Ant InputHandler class. |
private boolean |
keepGoing
Indicates whether to execute all targets that do not depend on failed targets |
private java.lang.String |
loggerClassname
The Ant logger class. |
private int |
messageOutputLevel
Our current message output status. |
static int |
MSG_PROJECT_HELP
Message priority for project help messages. |
private java.io.PrintStream |
out
Stream that we are using for logging |
private boolean |
projectHelp
Indicates we should only parse and display the project help information |
private java.util.List |
propertyFiles
|
private boolean |
scriptExecuted
|
private java.util.Vector |
targets
Targets we want to run. |
private java.util.Map |
userProperties
|
| Constructor Summary | |
InternalAntRunner()
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
MSG_PROJECT_HELP
public static final int MSG_PROJECT_HELP
- Message priority for project help messages.
- See Also:
- Constant Field Values
buildListeners
private java.util.List buildListeners
buildFileLocation
private java.lang.String buildFileLocation
targets
private java.util.Vector targets
- Targets we want to run.
userProperties
private java.util.Map userProperties
currentProject
private org.apache.tools.ant.Project currentProject
defaultTarget
private java.lang.String defaultTarget
buildLogger
private org.apache.tools.ant.BuildLogger buildLogger
eclipseSpecifiedTasks
private java.util.Map eclipseSpecifiedTasks
eclipseSpecifiedTypes
private java.util.Map eclipseSpecifiedTypes
antVersionNumber
private java.lang.String antVersionNumber
- Cache of the Ant version number when it has been loaded
messageOutputLevel
private int messageOutputLevel
- Our current message output status. Follows Project.MSG_XXX
emacsMode
private boolean emacsMode
- Indicates whether output to the log is to be unadorned.
projectHelp
private boolean projectHelp
- Indicates we should only parse and display the project help information
out
private java.io.PrintStream out
- Stream that we are using for logging
err
private java.io.PrintStream err
- Stream that we are using for logging error messages
loggerClassname
private java.lang.String loggerClassname
- The Ant logger class. There may be only one logger. It will have the
right to use the 'out' PrintStream. The class must implement the BuildLogger
interface. An empty String indicates that no logger is to be used. A
nullname indicates that the org.apache.tools.ant.DefaultLogger will be used.
extraArguments
private java.lang.String[] extraArguments
- Extra arguments to be parsed as command line arguments.
scriptExecuted
private boolean scriptExecuted
propertyFiles
private java.util.List propertyFiles
inputHandlerClassname
private java.lang.String inputHandlerClassname
- The Ant InputHandler class. There may be only one input handler.
keepGoing
private boolean keepGoing
- Indicates whether to execute all targets that
do not depend on failed targets
- Since:
- Ant 1.6.0
allowInput
private boolean allowInput
- Indicates whether this build is to support interactive input
- Since:
- Ant 1.6.0
| Constructor Detail |
InternalAntRunner
public InternalAntRunner()
| Method Detail |
main
public static void main(java.lang.String[] args)
addBuildListeners
private void addBuildListeners(org.apache.tools.ant.Project project)
parseBuildFile
private void parseBuildFile(org.apache.tools.ant.Project project)
- Parses the build file and adds necessary information into
the given project.
printArguments
private void printArguments(org.apache.tools.ant.Project project)
printTargets
private void printTargets(org.apache.tools.ant.Project project)
- Logs a message with the client that lists the targets
in a project
printTargets
private void printTargets(org.apache.tools.ant.Project project, java.util.List names, java.util.List descriptions, java.lang.String heading, int maxlen)
- Logs a message with the client that lists the target names and optional descriptions
run
private void run(java.util.List argList)
setTasks
private void setTasks()
setTypes
private void setTypes()
remapSystemIn
private void remapSystemIn()
validateDefaultTarget
private void validateDefaultTarget()
createLogger
private org.apache.tools.ant.BuildLogger createLogger()
- Creates and returns the default build logger for logging build events to the ant log.
fireBuildStarted
private void fireBuildStarted(org.apache.tools.ant.Project project)
fireBuildFinished
private void fireBuildFinished(org.apache.tools.ant.Project project, java.lang.Throwable error)
logMessage
private void logMessage(org.apache.tools.ant.Project project, java.lang.String message, int priority)
setBuildFileLocation
private void setBuildFileLocation(java.lang.String buildFileLocation)
- Sets the buildFileLocation.
getBuildFileLocation
private java.lang.String getBuildFileLocation()
setMessageOutputLevel
private void setMessageOutputLevel(int level)
- Sets the message output level. Use -1 for none.
getAntVersionNumber
private java.lang.String getAntVersionNumber() throws org.apache.tools.ant.BuildException
isVersionCompatible
private boolean isVersionCompatible(java.lang.String comparison)
preprocessCommandLine
private boolean preprocessCommandLine(java.util.List commands)
processCommandLine
private boolean processCommandLine(java.util.List commands)
processTasksAndTypes
private void processTasksAndTypes(java.util.List commands)
processUnrecognizedCommands
private void processUnrecognizedCommands(java.util.List commands)
processTargets
private void processTargets(java.util.List commands)
createLogFile
private void createLogFile(java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException
getFileRelativeToBaseDir
private java.io.File getFileRelativeToBaseDir(java.lang.String fileName)
processProperties
private void processProperties(java.util.List commands)
processMinusDProperties
private void processMinusDProperties(java.util.List commands)
setProperties
private void setProperties(org.apache.tools.ant.Project project)
setBuiltInProperties
private void setBuiltInProperties(org.apache.tools.ant.Project project)
printHelp
private void printHelp(org.apache.tools.ant.Project project)
printVersion
private void printVersion()
printUsage
private void printUsage()
getArgument
private java.lang.String getArgument(java.util.List commands, java.lang.String param)
getArrayList
private static java.util.ArrayList getArrayList(java.lang.String[] args)
getCurrentProject
private org.apache.tools.ant.Project getCurrentProject()
setCurrentProject
private void setCurrentProject(org.apache.tools.ant.Project currentProject)
loadPropertyFiles
private void loadPropertyFiles()
- Load all properties from the files
specified by -propertyfile.
addInputHandler
private void addInputHandler(org.apache.tools.ant.Project project)
|
|||||||||
| Home >> All >> org >> eclipse >> ant >> internal >> ui >> [ antsupport overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner