mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-20 22:42:16 +01:00
enable debug logging for scmp:run goal
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user