提交 14420835 编写于 作者: K kohsuke

added a debug option to show the full path of the current directory.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1606 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d6075285
......@@ -103,7 +103,10 @@ public abstract class Launcher {
StringBuffer buf = new StringBuffer();
if (workDir != null) {
buf.append('[');
buf.append(workDir.getRemote().replaceFirst("^.+[/\\\\]", ""));
if(showFullPath)
buf.append(workDir.getRemote());
else
buf.append(workDir.getRemote().replaceFirst("^.+[/\\\\]", ""));
buf.append("] ");
}
buf.append('$');
......@@ -144,4 +147,9 @@ public abstract class Launcher {
return m;
}
}
/**
* Debug option to display full current path instead of just the last token.
*/
public static boolean showFullPath = false;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册