org.apache.tools.ant
Class ProjectComponent
java.lang.Object
org.apache.tools.ant.ProjectComponent
public abstract class ProjectComponent
extends java.lang.Object
Base class for components of a project, including tasks and data types.
Provides common facilities.
protected Project | project - You should not be directly accessing this variable
directly.
|
Project | getProject() - Returns the project to which this component belongs.
|
void | log(String msg) - Logs a message with the default (INFO) priority.
|
void | log(String msg, int msgLevel) - Logs a message with the given priority.
|
void | setProject(Project project) - Sets the project object of this component.
|
project
protected Project project
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
public ProjectComponent()
Sole constructor.
getProject
public Project getProject()
Returns the project to which this component belongs.
- the components's project.
log
public void log(String msg)
Logs a message with the default (INFO) priority.
msg
- The message to be logged. Should not be null
.
log
public void log(String msg,
int msgLevel)
Logs a message with the given priority.
msg
- The message to be logged. Should not be null
.msgLevel
- the message priority at which this message is
to be logged.
setProject
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.
project
- Project in whose scope this component belongs.
Must not be null
.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.