|
||||||||||
| 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.sitemesh.ant.SiteMeshTask
public class SiteMeshTask
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
|---|
fileset |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
SiteMeshTask()
|
|
| Method Summary | |
|---|---|
void |
addSiteMeshfileset(SiteMeshFileSet fileset)
|
protected void |
applyCustomConfiguration(SiteMeshOfflineBuilder builder)
Override this to apply custom configuration after after the default configuration mechanisms. |
protected SiteMeshOffline |
createSiteMeshOffline(org.apache.tools.ant.types.FileSet fileset)
Creates The SiteMeshOffline generator for the given FileSet. |
void |
execute()
|
protected List<org.apache.tools.ant.types.FileSet> |
getImplicitAndExplicitFileSet()
Returns the all implicit and explicit FileSets. |
protected boolean |
hasDestdir(org.apache.tools.ant.types.FileSet fileset)
Checks to if the FileSet has a destdir set. |
protected boolean |
isSiteMeshFileSet(org.apache.tools.ant.types.FileSet fileset)
|
protected boolean |
isSiteMeshFileSetWithoutDecorator(org.apache.tools.ant.types.FileSet fileset)
A helper method that checks if the given FileSet is an instance of SiteMesh and no decorator was set on the given FileSet. |
protected Element |
parseSiteMeshXmlConfig(File config)
|
protected void |
processFileSet(List<org.apache.tools.ant.types.FileSet> filesets)
Processes the FileSet to decorate all of the provided files. |
void |
setConfig(File config)
Optional path to SiteMesh XML config file. |
void |
setDestdir(File destDir)
Destination directory where decorated content will be output to. |
void |
setSrcdir(File srcDir)
Source directory containing undecorated content and decorators. |
protected void |
verify()
Verify the required parameters. |
| 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 |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SiteMeshTask()
| Method Detail |
|---|
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected List<org.apache.tools.ant.types.FileSet> getImplicitAndExplicitFileSet()
protected void verify()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - If either the source or destination directories are not set.protected void processFileSet(List<org.apache.tools.ant.types.FileSet> filesets)
filesets - The set of files to be processed.
org.apache.tools.ant.BuildException - When there's a problem decorating the files.protected SiteMeshOffline createSiteMeshOffline(org.apache.tools.ant.types.FileSet fileset)
fileset - The FileSet to be processed.
protected boolean isSiteMeshFileSetWithoutDecorator(org.apache.tools.ant.types.FileSet fileset)
fileset - The FileSet to inspect.
protected boolean hasDestdir(org.apache.tools.ant.types.FileSet fileset)
fileset - The FileSet to check.
protected boolean isSiteMeshFileSet(org.apache.tools.ant.types.FileSet fileset)
protected Element parseSiteMeshXmlConfig(File config)
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionprotected void applyCustomConfiguration(SiteMeshOfflineBuilder builder)
builder - The SitemeshOfflineBuilder used in creating the SiteMeshOfflineGenerator.public void setDestdir(File destDir)
public void setSrcdir(File srcDir)
public void setConfig(File config)
public void addSiteMeshfileset(SiteMeshFileSet fileset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||