Execute given target(s).
The
AntProjectCookie.getFile must not be null, since Ant can only
run files present on disk.
The returned task may be used to wait for completion of the script
and check result status.
The easiest way to get the project cookie is to get a DataObject
representing an Ant build script and to ask it for this cookie. Alternatively,
you may implement the cookie interface directly, where
getFile is critical and other methods may do nothing
(returning null as needed).
While the specification for AntProjectCookie says that
getDocument and getParseException cannot
both return null simultaneously, the current
executor implementation does not care; to be safe, return an
UnsupportedOperationException from getParseException .
Parameters: antProject - a representation of the project to run Parameters: targets - non-empty list of target names to run; may be null to indicate default target task for tracking of progress of execution throws: IOException - if there is a problem running the script |