org.apache.cocoon.maven.rcl
Class PrepareWebappMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.cocoon.maven.rcl.PrepareWebappMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class PrepareWebappMojo
- extends org.apache.maven.plugin.AbstractMojo
Create a web application environment for a Cocoon block, including support for the reloading classloader.
- Version:
- $Id: PrepareWebappMojo.html 1351235 2012-06-18 08:41:39Z ilgrosso $
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected void |
applyXpatchFiles(File webAppBaseDir,
RwmProperties props)
|
protected void |
copyCustomWebappDirectory(File webAppBaseDir)
|
protected void |
copyRclWrapperLibs(File webAppBaseDir)
|
protected void |
createCocoonProperties(File webAppBaseDir,
RwmProperties props)
|
protected static File |
createPath(File file)
|
protected void |
createProperties(File webAppBaseDir)
|
protected void |
createReloadingClassLoaderConf(File webAppBaseDir,
RwmProperties props)
|
protected void |
createSpringProperties(File webAppBaseDir,
RwmProperties props)
|
protected void |
createUrlClassLoaderConf(File webAppBaseDir,
RwmProperties props)
|
void |
execute()
|
protected Set<org.apache.maven.artifact.Artifact> |
getDependencies()
|
protected RwmProperties |
readProperties()
|
protected InputStream |
readResourceFromClassloader(String fileName)
|
protected void |
rewriteWebXml(File webAppBaseDir)
|
protected void |
writeInputStreamToFile(InputStream is,
File f)
|
protected void |
writeLoggingConf(PrepareWebappMojo.Profile activeProfile,
File webAppBaseDir)
|
protected void |
writeStringTemplateToFile(File basedir,
String fileName,
String customFile,
Map templateObjects)
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrepareWebappMojo
public PrepareWebappMojo()
createPath
protected static File createPath(File file)
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
applyXpatchFiles
protected void applyXpatchFiles(File webAppBaseDir,
RwmProperties props)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
copyCustomWebappDirectory
protected void copyCustomWebappDirectory(File webAppBaseDir)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
copyRclWrapperLibs
protected void copyRclWrapperLibs(File webAppBaseDir)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createCocoonProperties
protected void createCocoonProperties(File webAppBaseDir,
RwmProperties props)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createProperties
protected void createProperties(File webAppBaseDir)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createReloadingClassLoaderConf
protected void createReloadingClassLoaderConf(File webAppBaseDir,
RwmProperties props)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createSpringProperties
protected void createSpringProperties(File webAppBaseDir,
RwmProperties props)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createUrlClassLoaderConf
protected void createUrlClassLoaderConf(File webAppBaseDir,
RwmProperties props)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getDependencies
protected Set<org.apache.maven.artifact.Artifact> getDependencies()
readProperties
protected RwmProperties readProperties()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
readResourceFromClassloader
protected InputStream readResourceFromClassloader(String fileName)
rewriteWebXml
protected void rewriteWebXml(File webAppBaseDir)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
writeInputStreamToFile
protected void writeInputStreamToFile(InputStream is,
File f)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
writeLoggingConf
protected void writeLoggingConf(PrepareWebappMojo.Profile activeProfile,
File webAppBaseDir)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
writeStringTemplateToFile
protected void writeStringTemplateToFile(File basedir,
String fileName,
String customFile,
Map templateObjects)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.