this is more natural.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20758 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-08-15 21:35:59 +00:00
1 parent 5f8c81e72c
commit b88ea2372a
1 file changed
+6 -8
@@ -76,14 +76,12 @@ final class WarExploder {
}
for( ; d!=null; d=d.getParentFile()) {
if(new File(d,".hudson").exists())
break;
}
if(d!=null) {
File dir = new File(d,"war/target/hudson");
if(dir.exists()) {
System.out.println("Using hudson.war resources from "+dir);
return dir;
if(new File(d,".hudson").exists()) {
File dir = new File(d,"war/target/hudson");
if(dir.exists()) {
System.out.println("Using hudson.war resources from "+dir);
return dir;
}
}
}