mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
no 'main' directory any more
This commit is contained in:
1 parent
14dbcd88d3
commit
e69aa12151
1 file changed
+1
-6
@@ -65,16 +65,11 @@ final class WarExploder {
|
||||
* Explodes hudson.war, if necessary, and returns its root dir.
|
||||
*/
|
||||
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
|
||||
|
||||
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()) {
|
||||
if(new File(d,".jenkins").exists()) {
|
||||
File dir = new File(d,"war/target/jenkins");
|
||||
|
||||
Reference in new issue
Block a user