This project has retired. For details please refer to its
Attic page .
XSPPrecompileWrapper (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.bean
Class XSPPrecompileWrapper
java.lang.Object
org.apache.cocoon.bean.CocoonWrapper
org.apache.cocoon.bean.XSPPrecompileWrapper
public class XSPPrecompileWrapper extends CocoonWrapper
This is simple Wrapper like CocoonWrapper and can only precompile all XSP in
the context-directory.
Version:
$Id: XSPPrecompileWrapper.html 1304258 2012-03-23 10:09:27Z ilgrosso $ $Date: 2012-03-23 10:09:27 +0000 (Fri, 23 Mar 2012) $
Methods inherited from class org.apache.cocoon.bean.CocoonWrapper
addLoadedClass , addLoadedClasses , dispose , finalize , getClassPath , getComponentManager , getLinks , getLoggerName , getPage , getPage , getType , loadClasses , processURI , processURI , setAcceptOptions , setAgentOptions , setConfigFile , setContextDir , setLogger , setLogKit , setLogLevel , setUseExistingCocoon , setWorkDir
HELP_OPT
protected static final String HELP_OPT
See Also: Constant Field Values
LOG_KIT_OPT
protected static final String LOG_KIT_OPT
See Also: Constant Field Values
CONTEXT_DIR_OPT
protected static final String CONTEXT_DIR_OPT
See Also: Constant Field Values
WORK_DIR_OPT
protected static final String WORK_DIR_OPT
See Also: Constant Field Values
CONFIG_FILE_OPT
protected static final String CONFIG_FILE_OPT
See Also: Constant Field Values
LOG_KIT_LONG
protected static final String LOG_KIT_LONG
See Also: Constant Field Values
CONTEXT_DIR_LONG
protected static final String CONTEXT_DIR_LONG
See Also: Constant Field Values
WORK_DIR_LONG
protected static final String WORK_DIR_LONG
See Also: Constant Field Values
HELP_LONG
protected static final String HELP_LONG
See Also: Constant Field Values
CONFIG_FILE_LONG
protected static final String CONFIG_FILE_LONG
See Also: Constant Field Values
XSPPrecompileWrapper
public XSPPrecompileWrapper ()
precompile
public void precompile ()
throws Exception
Allow subclasses to recursively precompile XSPs.
Throws:
Exception
processXSP
protected void processXSP (String uri)
throws Exception
Process a single XSP file
Parameters: uri
- a String
pointing to an xsp URI
Throws:
Exception
- if an error occurs
processXMAP
protected void processXMAP (String uri)
throws Exception
Process a single XMAP file
Parameters: uri
- a String
pointing to an xmap URI
Throws:
Exception
- if an error occurs
precompile
public void precompile (String fileName,
Environment environment,
String markupLanguage,
String programmingLanguage)
throws Exception
Process the given Environment
to generate Java code for
specified XSP files.
Parameters: fileName
- a String
valueenvironment
- an Environment
value
Throws:
Exception
- if an error occurs
main
public static void main (String [] args)
throws Exception
Throws:
Exception
initialize
public void initialize ()
throws Exception
Overrides: initialize
in class CocoonWrapper
Throws:
Exception
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.