org.mortbay.jetty.plugin
Class AbstractJettyRunMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.mortbay.jetty.plugin.AbstractJettyMojo
          extended by 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.


Field Summary
 
Fields inherited from class org.mortbay.jetty.plugin.AbstractJettyMojo
consoleScanner, contextPath, daemon, jettyConfig, overrideWebXml, PORT_SYSPROPERTY, project, reload, scanIntervalSeconds, scanList, scanner, scannerListeners, server, stopKey, stopPort, systemProperties, tmpDirectory, webAppConfig, webDefaultXml
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractJettyRunMojo()
           
 
Method Summary
 void checkPomConfiguration()
          Verify the configuration given in the pom.
 void configureScanner()
           
 void configureWebApplication()
          Subclasses should invoke this to setup basic info on the webapp
 void execute()
          Run the mojo
 java.io.File getClassesDirectory()
           
 java.util.List getClassPathFiles()
           
 java.util.List getExtraScanTargets()
           
 java.io.File getJettyEnvXml()
           
 java.io.File getJettyEnvXmlFile()
           
 java.io.File getWebAppSourceDirectory()
           
 java.io.File getWebXml()
           
 java.io.File getWebXmlFile()
           
 void restartWebApp(boolean reconfigureScanner)
           
 void setClassPathFiles(java.util.List list)
           
 void setExtraScanTargets(java.util.List list)
           
 void setJettyEnvXmlFile(java.io.File f)
           
 void setWebXmlFile(java.io.File f)
           
 
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, getTmpDirectory, getWebDefaultXml, setScanList, setScannerListeners, setServer, 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
 

Constructor Detail

AbstractJettyRunMojo

public AbstractJettyRunMojo()
Method Detail

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-2009 Mort Bay Consulting. All Rights Reserved.