|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.wurbelizer.AntWurbiler
public class AntWurbiler
Ant Task to invoke the DefaultWurbiler. This task will recursively scan the sourcedir looking for *.wrbl-files to wurbile.
Integrate into ant with:
<taskdef name="wurbile" classname="org.wurbelizer.AntWurbiler"/>Make sure that wurbelizer.jar is in the classpath of ant.
| Field Summary | |
|---|---|
protected boolean |
failOnError
|
protected File[] |
wurbleList
|
| Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
|---|
fileset |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
project |
| Constructor Summary | |
|---|---|
AntWurbiler()
Creates an instance of a wurbiler within ant. |
|
| Method Summary | |
|---|---|
protected void |
checkParameters()
Checks that all required attributes have been set and nothing silly has been entered. |
org.apache.tools.ant.types.Path |
createSrc()
Creates a path for source compilation. |
void |
execute()
Executes the task. |
File |
getDestdir()
Gets the destination directory into which the java source files should be compiled. |
boolean |
getFailOnError()
Gets the failonerror flag. |
File[] |
getFileList()
Gets the list of files to be compiled. |
int |
getIndent()
Gets the initial source indent. |
String |
getPackageName()
Gets the packageName. |
String |
getParentClass()
Gets the parent class. |
org.apache.tools.ant.types.Path |
getSrcdir()
Gets the source dirs to find the source java files. |
boolean |
getVerbose()
Gets the verbosity flag. |
protected org.apache.tools.ant.types.Path |
recreateSrc()
Recreates a path for source compilation. |
protected void |
resetFileLists()
Clears the list of files to be compiled and copied. |
protected void |
scanDir(File srcDir,
String[] files)
Scans the directory looking for source files to be wurbelized. |
void |
setDestdir(File destDir)
Sets the destination directory into which the Java source files should be compiled. |
void |
setFailOnError(boolean fail)
Indicates whether the build will continue even if there are compilation errors; defaults to true. |
void |
setIndent(int indent)
Sets the initial source ident (leading spaces for compiled wurblet source) Default is 4. |
void |
setPackageName(String packageName)
Sets the package name. |
void |
setParentClass(String parentClass)
Sets the parent class. |
void |
setProceed(boolean proceed)
Sets whether to proceed on error. |
void |
setSrcdir(org.apache.tools.ant.types.Path srcDir)
Sets the source directories to find the source Java files. |
void |
setVerbose(boolean verbose)
Sets the verbosity. |
protected void |
wurbile()
Compiles the wurblets. |
| Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
|---|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getProject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean failOnError
protected File[] wurbleList
| Constructor Detail |
|---|
public AntWurbiler()
| Method Detail |
|---|
public boolean getVerbose()
public void setVerbose(boolean verbose)
verbose - the verbosity, true = verbose, false = not.public int getIndent()
public void setIndent(int indent)
indent - the source indent, -1 = default (4)public String getParentClass()
public void setParentClass(String parentClass)
parentClass - the parent class, null = default (AbstractWurblet)public String getPackageName()
public void setPackageName(String packageName)
packageName - the package name, null = defaultpublic org.apache.tools.ant.types.Path createSrc()
protected org.apache.tools.ant.types.Path recreateSrc()
public void setSrcdir(org.apache.tools.ant.types.Path srcDir)
srcDir - the source directories as a pathpublic org.apache.tools.ant.types.Path getSrcdir()
public void setDestdir(File destDir)
destDir - the destination directorpublic File getDestdir()
public void setFailOnError(boolean fail)
fail - if true halt the build on failurepublic void setProceed(boolean proceed)
proceed - true to proceed on errorpublic boolean getFailOnError()
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if an error occursprotected void resetFileLists()
protected void scanDir(File srcDir,
String[] files)
srcDir - the source directoryfiles - the array of filenamespublic File[] getFileList()
protected void checkParameters()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if an error occursprotected void wurbile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||