Package de.uni_hildesheim.sse.easy.ant
Class AntGenerator
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
de.uni_hildesheim.sse.easy.ant.AntGenerator
- All Implemented Interfaces:
Cloneable
public class AntGenerator
extends org.apache.tools.ant.Task
Ant Task that will start the automated generation.
- Author:
- Patu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThis class represents additional features.private static classImplements a global exclusion selector based on ANT patterns.classThis class represents base features. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vector<AntGenerator.AddFeature> private Vector<AntGenerator.BaseFeature> private Stringprivate StringWhere to find compiled classes, relative to base dir.private static final booleanprivate Stringprivate IExclusionSelectorprivate booleanprivate Stringprivate Stringprivate StringFields inherited from class org.apache.tools.ant.Task
taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a additonal file for the generator.Adds a base file for the generator.voidexecute()The task executer.voidsetBaseDir(String baseDir) Sets the baseDir for the bootstrap of the generator.voidsetClassesPath(String classesPath) Setter for the path of compiled classes.voidsetEclipsePath(String eclipsePath) Sets the path for eclipse plugins.voidsetExcludes(String excludes) Defines optional global exclusion patterns.voidSets whether the Generator should force a build.voidsetLibsPath(String libs) Sets the path for the required libs.voidsetPluginPath(String pluginPath) Sets the path for the plugins.voidAdds a target for the generated JARS.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
DEBUG
private static final boolean DEBUG- See Also:
-
base
-
addF
-
forced
private boolean forced -
pluginPath
-
target
-
eclipsePath
-
baseDir
-
libsPath
-
exclusionSelector
-
classesPath
Where to find compiled classes, relative to base dir.
-
-
Constructor Details
-
AntGenerator
public AntGenerator()
-
-
Method Details
-
createBaseFeature
Adds a base file for the generator.- Returns:
- the basefeature object.
-
createAddFeature
Adds a additonal file for the generator.- Returns:
- the additonal object.
-
setLibsPath
Sets the path for the required libs.- Parameters:
libs- Path to the libs.
-
setTarget
Adds a target for the generated JARS.- Parameters:
target- The target as String.
-
setExcludes
Defines optional global exclusion patterns.- Parameters:
excludes- the exclusion patterns
-
setEclipsePath
Sets the path for eclipse plugins.- Parameters:
eclipsePath- The target as String.
-
setBaseDir
Sets the baseDir for the bootstrap of the generator.- Parameters:
baseDir- the base as String.
-
setForced
Sets whether the Generator should force a build. TRUE is default.- Parameters:
forced- anything but 0, no and false will cause the build to be forced.
-
setPluginPath
Sets the path for the plugins. Defines the bootstrap base.- Parameters:
pluginPath- The path of the plugins as string.
-
setClassesPath
Setter for the path of compiled classes.- Parameters:
classesPath- Where to find the compiled classes, relative to basePath.
-
execute
public void execute()The task executer.- Overrides:
executein classorg.apache.tools.ant.Task
-