提交 e69aa121 编写于 作者: K Kohsuke Kawaguchi

no 'main' directory any more

上级 14dbcd88
...@@ -65,16 +65,11 @@ final class WarExploder { ...@@ -65,16 +65,11 @@ final class WarExploder {
* Explodes hudson.war, if necessary, and returns its root dir. * Explodes hudson.war, if necessary, and returns its root dir.
*/ */
private static File explode() throws Exception { private static File explode() throws Exception {
// are we in the hudson main workspace? If so, pick up hudson/main/war/resources // are we in the Jenkins main workspace? If so, pick up hudson/main/war/resources
// this saves the effort of packaging a war file and makes the debug cycle faster // this saves the effort of packaging a war file and makes the debug cycle faster
File d = new File(".").getAbsoluteFile(); File d = new File(".").getAbsoluteFile();
// just in case we were started from hudson instead of from hudson/main/...
if (new File(d, "main/war/target/jenkins").exists()) {
return new File(d, "main/war/target/jenkins");
}
for( ; d!=null; d=d.getParentFile()) { for( ; d!=null; d=d.getParentFile()) {
if(new File(d,".jenkins").exists()) { if(new File(d,".jenkins").exists()) {
File dir = new File(d,"war/target/jenkins"); File dir = new File(d,"war/target/jenkins");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册