public java.lang.Object
clone
()
throws
java.lang.CloneNotSupportedException[Inherited From ProjectComponent]
Returns:
a shallow copy of this projectcomponent.
Throws: - java.lang.CloneNotSupportedException - does not happen,
but is declared to allow subclasses to do so.
Since:
Ant 1.7
Returns the file/location where this task was defined.
Returns the file/location where this task was defined.
Returns:
the file/location where this task was defined.
Should not return null. Location.UNKNOWN_LOCATION
is used for unknown locations.
See Also:Location.UNKNOWN_LOCATION,
Returns the project to which this component belongs.
Returns the project to which this component belongs.
Returns:
the components's project.
public void
log
(java.lang.String msg)
[Inherited From ProjectComponent]
Logs a message with the default (INFO) priority.
Logs a message with the default (INFO) priority.
Parameters: - msg - The message to be logged. Should not be null.
public void
log
(java.lang.String msg, int msgLevel)
[Inherited From ProjectComponent]
Logs a message with the given priority.
Logs a message with the given priority.
Parameters: - msg - The message to be logged. Should not be null.
- msgLevel - the message priority at which this message is
to be logged.
public void
setDescription
(java.lang.String desc)
[Inherited From ProjectComponent]
Sets a description of the current action.
Sets a description of the current action. This may be used for logging purposes.
Parameters: - desc - Description of the current action.
May be null, indicating that no description is
available.
Sets the file/location where this task was defined.
Sets the file/location where this task was defined.
Parameters: - location - The file/location where this task was defined.
Should not be null--use
Location.UNKNOWN_LOCATION if the location isn't known.
See Also:Location.UNKNOWN_LOCATION,
Sets the project object of this component. This method is used by Project when a component is added to it so that the component has access to the functions of the project. It should not be used for any other purpose.
Parameters: - project - Project in whose scope this component belongs.
Must not be null.