|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.MatchingTask | +--org.codehaus.groovy.ant.Wiki2Markup
Converts the Wiki markup into XML/HTML so that it can be styled by the Maven build
Field Summary | |
protected File[] |
compileList
|
protected boolean |
failOnError
|
protected boolean |
listFiles
|
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
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 | |
Wiki2Markup()
|
Method Summary | |
protected void |
checkParameters()
|
protected void |
compile()
|
protected void |
compile(File file,
String name)
|
void |
compileFiles(String[] args)
|
org.apache.tools.ant.types.Path |
createSrc()
Adds 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. |
boolean |
getListfiles()
Get the listfiles flag. |
org.apache.tools.ant.types.Path |
getSrcdir()
Gets the source dirs to find the source java files. |
static void |
main(String[] args)
|
protected String |
readFile(File file)
|
protected org.apache.tools.ant.types.Path |
recreateSrc()
Recreate src. |
protected void |
resetFileLists()
Clear the list of files to be compiled and copied.. |
protected void |
scanDir(File srcDir,
File destDir,
String[] files)
Scans the directory looking for source files to be compiled. |
void |
setDestdir(File destDir)
Set 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 |
setListfiles(boolean list)
If true, list the source files being handed off to the compiler. |
void |
setProceed(boolean proceed)
|
void |
setSrcdir(org.apache.tools.ant.types.Path srcDir)
Set the source directories to find the source Java files. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, 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, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
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 boolean listFiles
protected File[] compileList
Constructor Detail |
public Wiki2Markup()
Method Detail |
public static void main(String[] args)
public 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 setListfiles(boolean list)
list
- if true list the source filespublic boolean getListfiles()
public void setFailonerror(boolean fail)
fail
- if true halt the build on failurepublic void setProceed(boolean proceed)
proceed
- inverse of failoferrorpublic boolean getFailonerror()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- if an error occursprotected void resetFileLists()
protected void scanDir(File srcDir, File destDir, String[] files)
srcDir
- The source directorydestDir
- The destination directoryfiles
- An array of filenamespublic File[] getFileList()
protected void checkParameters() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void compileFiles(String[] args) throws IOException
IOException
protected void compile()
protected void compile(File file, String name) throws IOException
IOException
protected String readFile(File file) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |