enable debug logging for scmp:run goal

This commit is contained in:
Sebastian Sdorra
2011-08-01 17:32:38 +02:00
parent 2379bafa02
commit 57e9e706db

View File

@@ -90,6 +90,17 @@ public class RunMojo extends AbstractBaseScmMojo
return contextPath;
}
/**
* Method description
*
*
* @return
*/
public String getLoggginConfiguration()
{
return loggginConfiguration;
}
/**
* Method description
*
@@ -101,6 +112,17 @@ public class RunMojo extends AbstractBaseScmMojo
return port;
}
/**
* Method description
*
*
* @return
*/
public boolean isStartBrowser()
{
return startBrowser;
}
//~--- set methods ----------------------------------------------------------
/**
@@ -114,6 +136,17 @@ public class RunMojo extends AbstractBaseScmMojo
this.contextPath = contextPath;
}
/**
* Method description
*
*
* @param loggginConfiguration
*/
public void setLoggginConfiguration(String loggginConfiguration)
{
this.loggginConfiguration = loggginConfiguration;
}
/**
* Method description
*
@@ -125,6 +158,17 @@ public class RunMojo extends AbstractBaseScmMojo
this.port = port;
}
/**
* Method description
*
*
* @param startBrowser
*/
public void setStartBrowser(boolean startBrowser)
{
this.startBrowser = startBrowser;
}
//~--- methods --------------------------------------------------------------
/**
@@ -143,6 +187,9 @@ public class RunMojo extends AbstractBaseScmMojo
{
System.setProperty("scm.home", scmHome);
// enable debug logging
System.setProperty("logback.configurationFile", loggginConfiguration);
Server server = new Server();
SelectChannelConnector connector = new SelectChannelConnector();
@@ -177,6 +224,11 @@ public class RunMojo extends AbstractBaseScmMojo
*/
private String contextPath = "/scm";
/**
* @parameter expression="${loggingConfiguration}" default-value="/logback.default.xml"
*/
private String loggginConfiguration;
/**
* @parameter
*/