Modifier and Type | Field and Description |
---|---|
protected String | description
Description of this component, if any. |
protected Location | location
Location within the build file of this task definition. |
protected Project | project
Project object of this component. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public Object | Returns: a shallow copy of this projectcomponent.Overrides java. |
public String | Returns: the description of the current action, ornull if
no description is available.Returns the description of the current action. |
public Location | Returns: the file/location where this task was defined. Should not returnnull . Location.UNKNOWN_LOCATION
is used for unknown locations.Returns the file/location where this task was defined. |
public Project | |
public void | |
public void | |
public void | setDescription(String
Description of the current action.
May be desc)null , indicating that no description is
available.Sets a description of the current action. |
public void | setLocation(Location
The file/location where this task was defined.
Should not be location)null --use
Location.UNKNOWN_LOCATION if the location isn't known.Sets the file/location where this task was defined. |
public void | setProject(Project
Project in whose scope this component belongs.
Must not be project)null .Sets the project object of this component. |
description | back to summary |
---|---|
protected String description
Deprecated since 1.6.x. You should not be accessing this variable directly. Description of this component, if any. |
location | back to summary |
---|---|
protected Location location
Deprecated since 1.6.x.
You should not be accessing this variable directly.
Please use the Location within the build file of this task definition. |
project | back to summary |
---|---|
protected Project project
Deprecated since 1.6.x. You should not be directly accessing this variable directly. You should access project object via the getProject() or setProject() accessor/mutators. Project object of this component. |
ProjectComponent | back to summary |
---|---|
public ProjectComponent() Sole constructor. |
clone | back to summary |
---|---|
public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true , but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true , this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
|
getDescription | back to summary |
---|---|
public String getDescription() Returns the description of the current action.
|
getLocation | back to summary |
---|---|
public Location getLocation() Returns the file/location where this task was defined.
|
getProject | back to summary |
---|---|
public Project getProject() Returns the project to which this component belongs.
|
log | back to summary |
---|---|
public void log(String msg) Logs a message with the default (INFO) priority.
|
log | back to summary |
---|---|
public void log(String msg, int msgLevel) Logs a message with the given priority.
|
setDescription | back to summary |
---|---|
public void setDescription(String desc) Sets a description of the current action. This may be used for logging purposes.
|
setLocation | back to summary |
---|---|
public void setLocation(Location location) Sets the file/location where this task was defined.
|
setProject | back to summary |
---|---|
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.
|