Skip to content

Commit

Permalink
[JENKINS-26331] use buildDirectory system property to configure targe…
Browse files Browse the repository at this point in the history
…t directory

Originally-Committed-As: 1fae8c072a1e8da360cd10dca8b82d1cd1b00968
  • Loading branch information
daspilker committed Jan 8, 2015
1 parent f4a86b6 commit 9e3aa98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/src/main/java/org/jvnet/hudson/test/WarExploder.java
Expand Up @@ -88,7 +88,8 @@ private static File explode() throws Exception {
File war = Which.jarFile(Class.forName("executable.Executable"));

// TODO this assumes that the CWD of the Maven process is the plugin ${basedir}, which may not be the case
File explodeDir = new File("./target/jenkins-for-test").getAbsoluteFile();
File buildDirectory = new File(System.getProperty("buildDirectory", "target"));
File explodeDir = new File(buildDirectory, "jenkins-for-test").getAbsoluteFile();
explodeDir.getParentFile().mkdirs();
while (new File(explodeDir + ".exploding").isFile()) {
explodeDir = new File(explodeDir + "x");
Expand Down

0 comments on commit 9e3aa98

Please sign in to comment.