提交 1fae8c07 编写于 作者: D Daniel Spilker

[JENKINS-26331] use buildDirectory system property to configure target directory

上级 84575541
...@@ -88,7 +88,8 @@ final class WarExploder { ...@@ -88,7 +88,8 @@ final class WarExploder {
File war = Which.jarFile(Class.forName("executable.Executable")); 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 // 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(); explodeDir.getParentFile().mkdirs();
while (new File(explodeDir + ".exploding").isFile()) { while (new File(explodeDir + ".exploding").isFile()) {
explodeDir = new File(explodeDir + "x"); explodeDir = new File(explodeDir + "x");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册