public class SiteMeshTask
extends org.apache.tools.ant.taskdefs.MatchingTask
Constructor and Description |
---|
SiteMeshTask() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected 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.BuildException
protected 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)
Copyright © 2015. All Rights Reserved.