Methods Summary |
---|
public java.lang.Object | clone()
ProjectComponent pc = (ProjectComponent) super.clone();
pc.setLocation(getLocation());
pc.setProject(getProject());
return pc;
|
public java.lang.String | getDescription()Returns the description of the current action.
return description;
|
public Location | getLocation()Returns the file/location where this task was defined.
return location;
|
public Project | getProject()Returns the project to which this component belongs.
return project;
|
public void | log(java.lang.String msg)Logs a message with the default (INFO) priority.
log(msg, Project.MSG_INFO);
|
public void | log(java.lang.String msg, int msgLevel)Logs a message with the given priority.
if (getProject() != null) {
getProject().log(msg, msgLevel);
} else {
// 'reasonable' default, if the component is used without
// a Project ( for example as a standalone Bean ).
// Most ant components can be used this way.
if (msgLevel <= Project.MSG_INFO) {
System.err.println(msg);
}
}
|
public void | setDescription(java.lang.String desc)Sets a description of the current action. This may be used for logging
purposes.
description = desc;
|
public void | setLocation(Location location)Sets the file/location where this task was defined.
this.location = location;
|
public void | setProject(Project project)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.
this.project = project;
|