|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.maventaglib.TaglibPlugin
public abstract class TaglibPlugin
Base class for the maven taglib plugin.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
logger. |
protected java.lang.String |
outputDir
output dir for converted tlds. |
protected java.lang.String |
srcDir
tld directory path. |
protected java.lang.String |
tldOut
converted tld file name. |
protected java.lang.String |
tldSrc
tld directory path. |
Constructor Summary | |
---|---|
TaglibPlugin()
Instantiate a new Plugin and set up transformer factory. |
Method Summary | |
---|---|
protected void |
applyXslt(java.io.File inputFile,
java.lang.String stylesheet,
java.io.File outputFile)
Transform a file using the given xsl stylesheet. |
protected void |
applyXslt(javax.xml.transform.Source src,
java.lang.String stylesheet,
java.io.File outputFile)
Apply an xsl stylesheet to a java.xml.tranform.Source. |
protected void |
echo(java.lang.String message)
echo a message (using System.out). |
abstract void |
execute()
Executes the plugin goal. |
protected javax.xml.parsers.DocumentBuilder |
getDocumentBuilder()
Returns a DocumentBuilder instance. |
protected org.xml.sax.XMLReader |
getReader()
Returns a XMLReader instance. |
void |
setOutputDir(java.lang.String dir)
|
void |
setSrcDir(java.lang.String path)
|
void |
setTldOut(java.lang.String file)
|
void |
setTldSrc(java.lang.String file)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.logging.Log log
protected java.lang.String srcDir
protected java.lang.String tldSrc
protected java.lang.String outputDir
protected java.lang.String tldOut
Constructor Detail |
---|
public TaglibPlugin()
Method Detail |
---|
public void setOutputDir(java.lang.String dir)
dir
- The outputDir to set.public void setTldOut(java.lang.String file)
file
- The tldOut to set.public void setTldSrc(java.lang.String file)
file
- The tldSrc to set.public void setSrcDir(java.lang.String path)
path
- The full path for the tld directory.public abstract void execute() throws java.lang.Exception
java.lang.Exception
- any specific exception thrown by a plugin implementation.protected void applyXslt(java.io.File inputFile, java.lang.String stylesheet, java.io.File outputFile) throws java.lang.Exception
inputFile
- input filestylesheet
- xslt used for transformationoutputFile
- output file
java.lang.Exception
- xml parsing/transforming exceptionsprotected void applyXslt(javax.xml.transform.Source src, java.lang.String stylesheet, java.io.File outputFile) throws java.lang.Exception
src
- Sourcestylesheet
- xslt used for transformationoutputFile
- output file
java.lang.Exception
- xml parsing/transforming exceptionsprotected org.xml.sax.XMLReader getReader() throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
- for errors on building the sax parser
javax.xml.parsers.ParserConfigurationException
- if a SAX parser is not configuredprotected javax.xml.parsers.DocumentBuilder getDocumentBuilder() throws javax.xml.parsers.ParserConfigurationException, javax.xml.parsers.FactoryConfigurationError
javax.xml.parsers.FactoryConfigurationError
- if the parser is not configured
javax.xml.parsers.ParserConfigurationException
- if the parser is not configuredprotected void echo(java.lang.String message)
message
- output text.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |