This class also encapsulates methods which allow files to be referred to using abstract path names which are translated to native system file paths at runtime.
| Field Summary | |
|---|---|
| static String |
Version constant for Java 1.0 . |
| static String |
Version constant for Java 1.1 . |
| static String |
Version constant for Java 1.2 . |
| static String |
Version constant for Java 1.3 . |
| static String |
Version constant for Java 1.4 . |
| static int |
Message priority of "debug". |
| static int |
Message priority of "error". |
| static int |
Message priority of "information". |
| static int |
Message priority of "verbose". |
| static int |
Message priority of "warning". |
| static String |
Default filter end token. |
| static String |
Default filter start token. |
| Constructor Summary |
|---|
|
Create a new Ant project. |
| Method Summary | |
|---|---|
| void |
Add a build listener to the list. |
| void |
Add a new datatype definition. |
| void |
Add a filter to the set of global filters. |
| void |
Add a target to the project, or replaces one with the same name. |
| void |
Add a target to the project, or replaces one with the same name. |
| void |
Add a reference to the project. |
| void |
Add a new target to the project. |
| void |
Add a new target to the project. |
| void |
Add a new task definition to the project. |
| void |
Check whether or not a class is suitable for serving as Ant task. |
| void |
Convenience method to copy a file from a source to a destination. |
| void |
Convenience method to copy a file from a source to a destination specifying if token filtering should be used. |
| void |
Convenience method to copy a file from a source to a destination specifying if token filtering should be used and if source files may overwrite newer destination files. |
| void |
Convenience method to copy a file from a source to a destination specifying if token filtering should be used, if source files may overwrite newer destination files, and if the last modified time of the resulting file should be set to that of the source file. |
| void |
Convenience method to copy a file from a source to a destination. |
| void |
Convenience method to copy a file from a source to a destination specifying if token filtering should be used. |
| void |
Convenience method to copy a file from a source to a destination specifying if token filtering should be used and if source files may overwrite newer destination files. |
| void |
Convenience method to copy a file from a source to a destination specifying if token filtering should be used, if source files may overwrite newer destination files, and if the last modified time of the resulting file should be set to that of the source file. |
| void |
Copy all user properties that have not been set on the command line or a GUI tool from this instance to the Project instance given as the argument. |
| void |
Copy all user properties that have been set on the command line or a GUI tool from this instance to the Project instance given as the argument. |
| AntClassLoader |
Factory method to create a class loader for loading classes from a given path. |
| Object |
Create a new instance of a data type. |
| Task |
Create a new instance of a task, adding it to a list of created tasks for later invalidation. |
| int |
Read data from the default input stream. |
| void |
Demultiplex flush operations so that each task receives the appropriate messages. |
| int |
Demux an input request to the correct task. |
| void |
Demultiplex output so that each task receives the appropriate messages. |
| void |
Execute a Vector of sorted targets.
|
| void |
Execute the specified target and any targets it depends on. |
| void |
Execute the specified sequence of targets, and the targets they depend on. |
| void |
Send a "build finished" event to the build listeners for this project. |
| void |
Send a "build started" event to the build listeners for this project. |
| protected void |
Send a "message logged" project level event to the build listeners for this project. |
| protected void |
Send a "message logged" target level event to the build listeners for this project. |
| protected void |
Send a "message logged" task level event to the build listeners for this project. |
| void |
Send a "subbuild finished" event to the build listeners for this project. |
| void |
Send a "subbuild started" event to the build listeners for this project. |
| protected void |
Send a "target finished" event to the build listeners for this project. |
| protected void |
Send a "target started" event to the build listeners for this project. |
| protected void |
Send a "task finished" event to the build listeners for this project. |
| protected void |
Send a "task started" event to the build listeners for this project. |
| File |
Return the base directory of the project as a file object. |
| Vector |
Return a copy of the list of build listeners for the project. |
| ClassLoader |
Return the core classloader to use for this project. |
| Hashtable |
Return the current datatype definition hashtable. |
| InputStream |
Get this project's input stream. |
| String |
Return the name of the default target of the project. |
| String |
Return the project description, if one has been set. |
| String |
Return a description of the type of the given element, with special handling for instances of tasks and data types. |
| Executor |
Get this Project's Executor (setting it if necessary). |
| Hashtable |
Return a hashtable of global filters, mapping tokens to values. |
| FilterSet |
Return the set of global filters. |
| InputHandler |
Retrieve the current input handler. |
| static String |
Return the version of Java this class is running under. |
| String |
Return the project name, if one has been set. |
| Hashtable |
Return a copy of the properties table. |
| String |
Return the value of a property, if it is set. |
| Object |
Look up a reference by its key (ID). |
| Hashtable |
Return a map of the references in the project (String to Object). |
| Hashtable |
Return the hashtable of targets. |
| Hashtable |
Return the current task definition hashtable. |
| Task |
Get the current task associated with a thread, if any. |
| Hashtable |
Return a copy of the user property hashtable. |
| String |
Return the value of a user property, if it is set. |
| void |
Initialise the project. |
| void |
Init a sub project--used by taskdefs.Ant . |
| boolean |
Return the keep-going mode. |
| void |
Write a message to the log with the default log level of MSG_INFO . |
| void |
Write a project level message to the log with the given log level. |
| void |
Write a task level message to the log with the given log level. |
| void |
Write a target level message to the log with the given log level. |
| void |
Register a task as the current task for a thread. |
| void |
Remove a build listener from the list. |
| String |
Replace ${} style constructions in the given value with the string value of the corresponding data types. |
| File |
Return the canonical form of a filename. |
| File |
Return the canonical form of a filename. |
| void |
Set the base directory for the project, checking that the given filename exists and is a directory. |
| void |
Set the base directory for the project, checking that the given file exists and is a directory. |
| void |
Set the core classloader for the project. |
| void |
Set the default target of the project. |
| void |
Set the default System input stream. |
| void |
Set the default target of the project. |
| void |
Set the project description. |
| void |
Set the Executor instance for this Project. |
| void |
Call File.setLastModified(long time) on Java above 1.1, and logs a warning on Java 1.1. |
| void |
Set a user property, which cannot be overwritten by set/unset property calls. |
| void |
Set the input handler. |
| void |
Set the ant.java.version property and tests for
unsupported JVM versions.
|
| void |
Set "keep-going" mode. |
| void |
Set the name of the project, also setting the user property ant.project.name.
|
| void |
Set a property if no value currently exists. |
| void |
Set a reference to this Project on the parameterized object. |
| void |
Set a property. |
| void |
Add all system properties which aren't already defined as user properties to the project properties. |
| void |
Set a user property, which cannot be overwritten by set/unset property calls. |
| static boolean |
Return the boolean equivalent of a string, which is considered true if either "on", "true",
or "yes" is found, ignoring case.
|
| Vector |
Topologically sort a set of targets. |
| Vector |
Topologically sort a set of targets. |
| Vector |
Topologically sort a set of targets. |
| static String |
Translate a path into its native (platform specific) format. |
| Methods inherited from java.langObject |
|---|
public
void
copyFile
(
String
sourceFile,
String
destFile,
boolean
filtering,
boolean
overwrite
)
public
void
copyFile
(
String
sourceFile,
String
destFile,
boolean
filtering,
boolean
overwrite,
boolean
preserveLastModified
)
public
void
copyFile
(
File
sourceFile,
File
destFile,
boolean
filtering,
boolean
overwrite
)
public
void
copyFile
(
File
sourceFile,
File
destFile,
boolean
filtering,
boolean
overwrite,
boolean
preserveLastModified
)
To copy all "user" properties, you will also have to call copyUserProperties .
To copy all "user" properties, you will also have to call copyInheritedProperties .
public
void
fireBuildStarted
(
)
public
void
fireSubBuildStarted
(
)
null, indicating that
the parent classloader should be used. This is useful for logging purposes.
name‘s:
sshOutput
public
boolean
isKeepGoingMode
(
)
ant.executor.class
property, they will have no effect. If the specified file name is relative it is resolved with respect to the given root directory.
If the specified file name is relative it is resolved with respect to the project's base directory.
null
classloader is specified, the parent classloader should be used. ant.java.version property and tests for
unsupported JVM versions. If the version is supported,
verbose log messages are generated to record the Java version
and operating system name.
public
void
setKeepGoingMode
(
boolean
keepGoingMode
)
ant.executor.class
property, they will have no effect. ant.project.name.
public
void
setSystemProperties
(
)
true if either "on", "true",
or "yes" is found, ignoring case. topoSort(new String[] {root}, targets, true). topoSort(new String[] {root}, targets, returnAll). This method uses PathTokenizer to separate the input path into its components. This handles DOS style paths in a relatively sensible way. The file separators are then converted to their platform specific versions.