|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMatchingTask
org.codehaus.groovy.wiki.Wiki2Markup
Converts the Wiki markup into XML/HTML so that it can be styled by the Maven build
Field Summary | |
protected java.io.File[] |
compileList
|
private org.radeox.api.engine.context.RenderContext |
context
|
private java.io.File |
destDir
|
private org.radeox.api.engine.RenderEngine |
engine
|
protected boolean |
failOnError
|
protected boolean |
listFiles
|
private GlobPatternMapper |
m
|
private Path |
src
|
Constructor Summary | |
Wiki2Markup()
|
Method Summary | |
protected void |
checkParameters()
|
protected void |
compile()
|
protected void |
compile(java.io.File file,
java.lang.String name)
|
void |
compileFiles(java.lang.String[] args)
|
protected org.radeox.api.engine.RenderEngine |
createRenderEngine()
|
Path |
createSrc()
Adds a path for source compilation. |
void |
execute()
Executes the task. |
protected java.lang.String |
filter(java.lang.String result)
|
java.io.File |
getDestdir()
Gets the destination directory into which the java source files should be compiled. |
protected java.lang.String |
getExtension()
|
boolean |
getFailonerror()
Gets the failonerror flag. |
java.io.File[] |
getFileList()
Gets the list of files to be compiled. |
boolean |
getListfiles()
Get the listfiles flag. |
Path |
getSrcdir()
Gets the source dirs to find the source java files. |
static void |
main(java.lang.String[] args)
|
protected java.lang.String |
readFile(java.io.File file)
|
protected Path |
recreateSrc()
Recreate src. |
protected void |
resetFileLists()
Clear the list of files to be compiled and copied.. |
protected void |
scanDir(java.io.File srcDir,
java.io.File destDir,
java.lang.String[] files)
Scans the directory looking for source files to be compiled. |
void |
setDestdir(java.io.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(Path srcDir)
Set the source directories to find the source Java files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Path src
private java.io.File destDir
protected boolean failOnError
protected boolean listFiles
protected java.io.File[] compileList
private GlobPatternMapper m
private org.radeox.api.engine.context.RenderContext context
private org.radeox.api.engine.RenderEngine engine
Constructor Detail |
public Wiki2Markup()
Method Detail |
public static void main(java.lang.String[] args)
public Path createSrc()
protected Path recreateSrc()
public void setSrcdir(Path srcDir)
srcDir
- the source directories as a pathpublic Path getSrcdir()
public void setDestdir(java.io.File destDir)
destDir
- the destination directorpublic java.io.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 BuildException
BuildException
- if an error occursprotected void resetFileLists()
protected void scanDir(java.io.File srcDir, java.io.File destDir, java.lang.String[] files)
srcDir
- The source directorydestDir
- The destination directoryfiles
- An array of filenamespublic java.io.File[] getFileList()
protected void checkParameters() throws BuildException
BuildException
public void compileFiles(java.lang.String[] args) throws java.io.IOException
java.io.IOException
protected void compile()
protected void compile(java.io.File file, java.lang.String name) throws java.io.IOException
java.io.IOException
protected java.lang.String filter(java.lang.String result)
protected java.lang.String readFile(java.io.File file) throws java.io.IOException
java.io.IOException
protected org.radeox.api.engine.RenderEngine createRenderEngine()
protected java.lang.String getExtension()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |