[Bug 412713] add dumpOnStart configuration to jetty-maven-plugin

This commit is contained in:
Jesse McConnell 2013-07-10 15:54:37 -05:00
parent fde47b1083
commit ae3286f9fc
1 changed files with 12 additions and 0 deletions

View File

@ -203,6 +203,12 @@ public abstract class AbstractJettyMojo extends AbstractMojo
*/
protected String stopKey;
/**
* Use the dump() facility of jetty to print out the server configuration to logging
*
* @parameter expression"${dumponStart}" default-value="false"
*/
protected boolean dumpOnStart;
/**
* <p>
@ -272,6 +278,7 @@ public abstract class AbstractJettyMojo extends AbstractMojo
*/
protected List pluginArtifacts;
/**
* A ServerConnector to use.
@ -558,6 +565,11 @@ public abstract class AbstractJettyMojo extends AbstractMojo
getLog().info("Started Jetty Server");
if ( dumpOnStart )
{
getLog().info(this.server.dump());
}
// start the scanner thread (if necessary) on the main webapp
configureScanner ();
startScanner();