[Bug 412713] add dumpOnStart configuration to jetty-maven-plugin
This commit is contained in:
parent
fde47b1083
commit
ae3286f9fc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue