Package org.eclipse.ant.core
Class TargetInfo
java.lang.Object
org.eclipse.ant.core.TargetInfo
Represents information about a target within an Ant build file. Clients may not instantiate or subclass this class.
- Since:
- 2.1
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Constructor Summary
ConstructorDescriptionTargetInfo
(ProjectInfo project, String name, String description, String[] dependencies, boolean isDefault) Create a target information -
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
Return the names of the targets that this target depends on.Returns the target description ornull
if no description is provided.getName()
Returns the target name.Returns the ProjectInfo of the enclosing project.int
hashCode()
boolean
Returns whether this is the build file default target.toString()
-
Constructor Details
-
TargetInfo
public TargetInfo(ProjectInfo project, String name, String description, String[] dependencies, boolean isDefault) Create a target information- Parameters:
name
- target namedescription
- a brief explanation of the target's purpose ornull
if not specifiedproject
- enclosing projectdependencies
- names of prerequisite projectsisDefault
- whether this is the build file default target- Since:
- 3.3
-
-
Method Details
-
getName
Returns the target name.- Returns:
- the target name
-
getDescription
Returns the target description ornull
if no description is provided.- Returns:
- the target description or
null
if none
-
getProject
Returns the ProjectInfo of the enclosing project.- Returns:
- the project info for the enclosing project
-
getDependencies
Return the names of the targets that this target depends on.- Returns:
- the dependent names
-
isDefault
public boolean isDefault()Returns whether this is the build file default target.- Returns:
- whether this is the build file default target
-
equals
-
hashCode
public int hashCode() -
toString
-