org.mortbay.jetty.plugin
Class AbstractJettyRunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.mortbay.jetty.plugin.AbstractJettyMojo
org.mortbay.jetty.plugin.AbstractJettyRunMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- Jetty6RunMojo
public abstract class AbstractJettyRunMojo
- extends AbstractJettyMojo
AbstractJettyRunMojo
Base class for all jetty versions for the "run" mojo.
Fields inherited from class org.mortbay.jetty.plugin.AbstractJettyMojo |
consoleScanner, contextPath, daemon, jettyConfig, overrideWebXml, PORT_SYSPROPERTY, project, reload, scanIntervalSeconds, scanList, scanner, scannerListeners, server, skip, stopKey, stopPort, systemProperties, systemPropertiesFile, tmpDirectory, webAppConfig, webDefaultXml |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.mortbay.jetty.plugin.AbstractJettyMojo |
applyJettyXml, createServer, findJettyWebXmlFile, finishConfigurationBeforeStart, getConfiguredConnectors, getConfiguredRequestLog, getConfiguredUserRealms, getContextPath, getJettyXmlFile, getOverrideWebXml, getProject, getScanIntervalSeconds, getScanList, getScanner, getScannerListeners, getServer, getSystemPropertiesFile, getTmpDirectory, getWebDefaultXml, setScanList, setScannerListeners, setServer, setSystemProperties, setSystemPropertiesFile, startConsoleScanner, startJetty |
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 |
AbstractJettyRunMojo
public AbstractJettyRunMojo()
getWebXml
public java.io.File getWebXml()
getJettyEnvXml
public java.io.File getJettyEnvXml()
getClassesDirectory
public java.io.File getClassesDirectory()
getWebAppSourceDirectory
public java.io.File getWebAppSourceDirectory()
setWebXmlFile
public void setWebXmlFile(java.io.File f)
getWebXmlFile
public java.io.File getWebXmlFile()
getJettyEnvXmlFile
public java.io.File getJettyEnvXmlFile()
setJettyEnvXmlFile
public void setJettyEnvXmlFile(java.io.File f)
setClassPathFiles
public void setClassPathFiles(java.util.List list)
getClassPathFiles
public java.util.List getClassPathFiles()
getExtraScanTargets
public java.util.List getExtraScanTargets()
setExtraScanTargets
public void setExtraScanTargets(java.util.List list)
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Run the mojo
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Overrides:
execute
in class AbstractJettyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
- See Also:
Mojo.execute()
checkPomConfiguration
public void checkPomConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
- Verify the configuration given in the pom.
- Specified by:
checkPomConfiguration
in class AbstractJettyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
- See Also:
AbstractJettyMojo.checkPomConfiguration()
configureWebApplication
public void configureWebApplication()
throws java.lang.Exception
- Description copied from class:
AbstractJettyMojo
- Subclasses should invoke this to setup basic info
on the webapp
- Overrides:
configureWebApplication
in class AbstractJettyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
java.lang.Exception
configureScanner
public void configureScanner()
- Specified by:
configureScanner
in class AbstractJettyMojo
restartWebApp
public void restartWebApp(boolean reconfigureScanner)
throws java.lang.Exception
- Specified by:
restartWebApp
in class AbstractJettyMojo
- Throws:
java.lang.Exception
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.