提交 d90cc78a 编写于 作者: K kohsuke

adding a debug probe even in the production build.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2550 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4c2e34be
......@@ -248,7 +248,8 @@ public class MavenBuild extends AbstractBuild<MavenModule,MavenBuild> {
ArgumentListBuilder args = new ArgumentListBuilder();
args.add(launcher.getChannel().call(new GetJavaExe()));
//args.add("-Xrunjdwp:transport=dt_socket,server=y,address=8002");
if(debugPort!=0)
args.add("-Xrunjdwp:transport=dt_socket,server=y,address="+debugPort);
args.add("-cp");
args.add(
......@@ -360,4 +361,15 @@ public class MavenBuild extends AbstractBuild<MavenModule,MavenBuild> {
return false;
}
}
/**
* If not 0, launch Maven with a debugger port.
*/
public static int debugPort;
static {
String port = System.getProperty(MavenBuild.class.getName() + ".debugPort");
if(port!=null)
debugPort = Integer.parseInt(port);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册