org.nuiton.wikitty.plugin
Class JettyUtil

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.mortbay.jetty.plugin.AbstractJettyMojo
          extended by org.nuiton.wikitty.plugin.JettyUtil
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JettyUtil
extends org.mortbay.jetty.plugin.AbstractJettyMojo

New definition of the JettyRunWarMojo to set the protected visibility and getter and setter for the webApp file

Author:
mfortun

Field Summary
protected  File webApp
          The location of the war file.
 
Fields inherited from class org.mortbay.jetty.plugin.AbstractJettyMojo
connectors, consoleScanner, contextHandlers, contextPath, daemon, jettyConfig, loginServices, PORT_SYSPROPERTY, project, reload, requestLog, scanIntervalSeconds, scanList, scanner, scannerListeners, server, skip, stopKey, stopPort, systemProperties, systemPropertiesFile, tmpDirectory, webAppConfig, webAppXml
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JettyUtil()
           
 
Method Summary
 void applyJettyXml()
           
 void checkPomConfiguration()
           
 void configureScanner()
           
 void configureWebApplication()
           
 void finishConfigurationBeforeStart()
           
 File getWebApp()
           
 void restartWebApp(boolean reconfigureScanner)
           
 void setProject(org.apache.maven.project.MavenProject project)
           
 void setWebApp(File webApp)
           
 
Methods inherited from class org.mortbay.jetty.plugin.AbstractJettyMojo
execute, findJettyWebXmlFile, getContextPath, getJettyXmlFiles, getProject, getScanIntervalSeconds, getScanList, getScanner, getScannerListeners, getServer, getSystemPropertiesFile, getTmpDirectory, 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
 

Field Detail

webApp

protected File webApp
The location of the war file.

Is defined by:
expression:
${project.build.directory}/${project.build.finalName}.war
Is required.
Constructor Detail

JettyUtil

public JettyUtil()
Method Detail

getWebApp

public File getWebApp()

setWebApp

public void setWebApp(File webApp)

configureWebApplication

public void configureWebApplication()
                             throws Exception
Overrides:
configureWebApplication in class org.mortbay.jetty.plugin.AbstractJettyMojo
Throws:
Exception

checkPomConfiguration

public void checkPomConfiguration()
                           throws org.apache.maven.plugin.MojoExecutionException
Specified by:
checkPomConfiguration in class org.mortbay.jetty.plugin.AbstractJettyMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

configureScanner

public void configureScanner()
                      throws org.apache.maven.plugin.MojoExecutionException
Specified by:
configureScanner in class org.mortbay.jetty.plugin.AbstractJettyMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

restartWebApp

public void restartWebApp(boolean reconfigureScanner)
                   throws Exception
Specified by:
restartWebApp in class org.mortbay.jetty.plugin.AbstractJettyMojo
Throws:
Exception

finishConfigurationBeforeStart

public void finishConfigurationBeforeStart()
Specified by:
finishConfigurationBeforeStart in class org.mortbay.jetty.plugin.AbstractJettyMojo

applyJettyXml

public void applyJettyXml()
                   throws Exception
Specified by:
applyJettyXml in class org.mortbay.jetty.plugin.AbstractJettyMojo
Throws:
Exception

setProject

public void setProject(org.apache.maven.project.MavenProject project)


Copyright © 2011 CodeLutin. All Rights Reserved.