mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user