Class SubAntHelper
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- net.ggtools.grand.ant.taskhelpers.SubAntHelper
-
- All Implemented Interfaces:
Cloneable
public class SubAntHelper extends org.apache.tools.ant.Task
A Proxy for theSubAnt
class allowing to retrieve some data after configuration.- Author:
- Christophe Labouisse
-
-
Constructor Summary
Constructors Constructor Description SubAntHelper()
Constructor for SubAntHelper.SubAntHelper(org.apache.tools.ant.taskdefs.SubAnt underlying)
Constructor for SubAntHelper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(org.apache.tools.ant.types.ResourceCollection rc)
void
addConfiguredTarget(org.apache.tools.ant.taskdefs.Ant.TargetElement t)
void
addDirset(org.apache.tools.ant.types.DirSet set)
void
addFilelist(org.apache.tools.ant.types.FileList list)
void
addFileset(org.apache.tools.ant.types.FileSet set)
void
addProperty(org.apache.tools.ant.taskdefs.Property p)
void
addPropertyset(org.apache.tools.ant.types.PropertySet ps)
void
addReference(org.apache.tools.ant.taskdefs.Ant.Reference r)
org.apache.tools.ant.types.Path
createBuildpath()
org.apache.tools.ant.types.Path.PathElement
createBuildpathElement()
boolean
equals(Object obj)
Method equals.void
execute()
Method execute.String
getAntfile()
org.apache.tools.ant.types.Path
getBuildpath()
Gets the implicit build path, creating it ifnull
.String
getDescription()
Method getDescription.File
getGenericAntfile()
org.apache.tools.ant.Location
getLocation()
Method getLocation.org.apache.tools.ant.Target
getOwningTarget()
Method getOwningTarget.org.apache.tools.ant.Project
getProject()
Method getProject.List<org.apache.tools.ant.taskdefs.Property>
getProperties()
List<org.apache.tools.ant.types.PropertySet>
getPropertySets()
List<org.apache.tools.ant.taskdefs.Ant.Reference>
getReferences()
org.apache.tools.ant.RuntimeConfigurable
getRuntimeConfigurableWrapper()
Method getRuntimeConfigurableWrapper.String
getTarget()
String
getTaskName()
Method getTaskName.String
getTaskType()
Method getTaskType.int
hashCode()
Method hashCode.void
init()
Method init.void
log(String msg)
Method log.void
log(String msg, int msgLevel)
Method log.void
maybeConfigure()
Method maybeConfigure.void
reconfigure()
Method reconfigure.void
setAntfile(String antfile)
void
setBuildpath(org.apache.tools.ant.types.Path s)
void
setBuildpathRef(org.apache.tools.ant.types.Reference r)
void
setDescription(String desc)
Method setDescription.void
setFailonerror(boolean failOnError)
void
setGenericAntfile(File afile)
void
setInheritall(boolean b)
void
setInheritrefs(boolean b)
void
setLocation(org.apache.tools.ant.Location location)
Method setLocation.void
setOutput(String s)
void
setOwningTarget(org.apache.tools.ant.Target target)
Method setOwningTarget.void
setProject(org.apache.tools.ant.Project project)
Method setProject.void
setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable wrapper)
Method setRuntimeConfigurableWrapper.void
setTarget(String target)
void
setTaskName(String name)
Method setTaskName.void
setTaskType(String type)
Method setTaskType.
-
-
-
Method Detail
-
addDirset
public final void addDirset(org.apache.tools.ant.types.DirSet set)
- Parameters:
set
- DirSet
-
addFilelist
public final void addFilelist(org.apache.tools.ant.types.FileList list)
- Parameters:
list
- FileList
-
addFileset
public final void addFileset(org.apache.tools.ant.types.FileSet set)
- Parameters:
set
- FileSet
-
addProperty
public final void addProperty(org.apache.tools.ant.taskdefs.Property p)
- Parameters:
p
- Property
-
addPropertyset
public final void addPropertyset(org.apache.tools.ant.types.PropertySet ps)
- Parameters:
ps
- PropertySet
-
addReference
public final void addReference(org.apache.tools.ant.taskdefs.Ant.Reference r)
- Parameters:
r
- Reference
-
addConfiguredTarget
public void addConfiguredTarget(org.apache.tools.ant.taskdefs.Ant.TargetElement t)
- Parameters:
t
- Ant.TargetElement
-
createBuildpath
public final org.apache.tools.ant.types.Path createBuildpath()
- Returns:
- Path
-
createBuildpathElement
public final org.apache.tools.ant.types.Path.PathElement createBuildpathElement()
- Returns:
- PathElement
-
equals
public final boolean equals(Object obj)
Method equals.- Overrides:
equals
in classObject
- Parameters:
obj
- Object- Returns:
- boolean
- See Also:
Object.equals(java.lang.Object)
-
execute
public final void execute()
Method execute.- Overrides:
execute
in classorg.apache.tools.ant.Task
- See Also:
Task.execute()
-
getAntfile
public final String getAntfile()
- Returns:
- Returns the antfile.
-
getBuildpath
public final org.apache.tools.ant.types.Path getBuildpath()
Gets the implicit build path, creating it ifnull
.- Returns:
- the implicit build path.
-
getDescription
public final String getDescription()
Method getDescription.- Overrides:
getDescription
in classorg.apache.tools.ant.ProjectComponent
- Returns:
- String
- See Also:
ProjectComponent.getDescription()
-
getGenericAntfile
public final File getGenericAntfile()
- Returns:
- Returns the genericantfile.
-
getLocation
public final org.apache.tools.ant.Location getLocation()
Method getLocation.- Overrides:
getLocation
in classorg.apache.tools.ant.ProjectComponent
- Returns:
- Location
- See Also:
ProjectComponent.getLocation()
-
getOwningTarget
public final org.apache.tools.ant.Target getOwningTarget()
Method getOwningTarget.- Overrides:
getOwningTarget
in classorg.apache.tools.ant.Task
- Returns:
- Target
- See Also:
Task.getOwningTarget()
-
getProject
public final org.apache.tools.ant.Project getProject()
Method getProject.- Overrides:
getProject
in classorg.apache.tools.ant.ProjectComponent
- Returns:
- Project
- See Also:
ProjectComponent.getProject()
-
getProperties
public final List<org.apache.tools.ant.taskdefs.Property> getProperties()
- Returns:
- Returns the properties.
-
getPropertySets
public final List<org.apache.tools.ant.types.PropertySet> getPropertySets()
- Returns:
- Returns the propertySets.
-
getReferences
public final List<org.apache.tools.ant.taskdefs.Ant.Reference> getReferences()
- Returns:
- Returns the references.
-
getRuntimeConfigurableWrapper
public final org.apache.tools.ant.RuntimeConfigurable getRuntimeConfigurableWrapper()
Method getRuntimeConfigurableWrapper.- Overrides:
getRuntimeConfigurableWrapper
in classorg.apache.tools.ant.Task
- Returns:
- RuntimeConfigurable
- See Also:
Task.getRuntimeConfigurableWrapper()
-
getTaskName
public final String getTaskName()
Method getTaskName.- Overrides:
getTaskName
in classorg.apache.tools.ant.Task
- Returns:
- String
- See Also:
Task.getTaskName()
-
getTaskType
public final String getTaskType()
Method getTaskType.- Overrides:
getTaskType
in classorg.apache.tools.ant.Task
- Returns:
- String
- See Also:
Task.getTaskType()
-
hashCode
public final int hashCode()
Method hashCode.- Overrides:
hashCode
in classObject
- Returns:
- int
- See Also:
Object.hashCode()
-
init
public final void init()
Method init.- Overrides:
init
in classorg.apache.tools.ant.Task
- See Also:
Task.init()
-
log
public final void log(String msg)
Method log.- Overrides:
log
in classorg.apache.tools.ant.Task
- Parameters:
msg
- String- See Also:
Task.log(java.lang.String)
-
log
public final void log(String msg, int msgLevel)
Method log.- Overrides:
log
in classorg.apache.tools.ant.Task
- Parameters:
msg
- StringmsgLevel
- int- See Also:
Task.log(java.lang.String, int)
-
maybeConfigure
public final void maybeConfigure()
Method maybeConfigure.- Overrides:
maybeConfigure
in classorg.apache.tools.ant.Task
- See Also:
Task.maybeConfigure()
-
reconfigure
public final void reconfigure()
Method reconfigure.- Overrides:
reconfigure
in classorg.apache.tools.ant.Task
- See Also:
Task.reconfigure()
-
setAntfile
public final void setAntfile(String antfile)
- Parameters:
antfile
- String
-
add
public void add(org.apache.tools.ant.types.ResourceCollection rc)
- Parameters:
rc
- ResourceCollection
-
setBuildpath
public final void setBuildpath(org.apache.tools.ant.types.Path s)
- Parameters:
s
- Path
-
setBuildpathRef
public final void setBuildpathRef(org.apache.tools.ant.types.Reference r)
- Parameters:
r
- Reference
-
setDescription
public final void setDescription(String desc)
Method setDescription.- Overrides:
setDescription
in classorg.apache.tools.ant.ProjectComponent
- Parameters:
desc
- String- See Also:
ProjectComponent.setDescription(java.lang.String)
-
setFailonerror
public final void setFailonerror(boolean failOnError)
- Parameters:
failOnError
- boolean
-
setGenericAntfile
public final void setGenericAntfile(File afile)
- Parameters:
afile
- File
-
setInheritall
public final void setInheritall(boolean b)
- Parameters:
b
- boolean
-
setInheritrefs
public final void setInheritrefs(boolean b)
- Parameters:
b
- boolean
-
setLocation
public final void setLocation(org.apache.tools.ant.Location location)
Method setLocation.- Overrides:
setLocation
in classorg.apache.tools.ant.ProjectComponent
- Parameters:
location
- Location- See Also:
ProjectComponent.setLocation(org.apache.tools.ant.Location)
-
getTarget
public final String getTarget()
- Returns:
- Returns the target.
-
setOutput
public final void setOutput(String s)
- Parameters:
s
- String
-
setOwningTarget
public final void setOwningTarget(org.apache.tools.ant.Target target)
Method setOwningTarget.- Overrides:
setOwningTarget
in classorg.apache.tools.ant.Task
- Parameters:
target
- Target- See Also:
Task.setOwningTarget(org.apache.tools.ant.Target)
-
setProject
public final void setProject(org.apache.tools.ant.Project project)
Method setProject.- Overrides:
setProject
in classorg.apache.tools.ant.ProjectComponent
- Parameters:
project
- Project- See Also:
ProjectComponent.setProject(org.apache.tools.ant.Project)
-
setRuntimeConfigurableWrapper
public final void setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable wrapper)
Method setRuntimeConfigurableWrapper.- Overrides:
setRuntimeConfigurableWrapper
in classorg.apache.tools.ant.Task
- Parameters:
wrapper
- RuntimeConfigurable- See Also:
Task.setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)
-
setTarget
public final void setTarget(String target)
- Parameters:
target
- String
-
setTaskName
public final void setTaskName(String name)
Method setTaskName.- Overrides:
setTaskName
in classorg.apache.tools.ant.Task
- Parameters:
name
- String- See Also:
Task.setTaskName(java.lang.String)
-
setTaskType
public final void setTaskType(String type)
Method setTaskType.- Overrides:
setTaskType
in classorg.apache.tools.ant.Task
- Parameters:
type
- String- See Also:
Task.setTaskType(java.lang.String)
-
-