From bb7b8cfdd67d07fffa365dad903d3e513deac4d8 Mon Sep 17 00:00:00 2001 From: Juergen Albert Date: Fri, 25 Nov 2022 17:34:53 +0100 Subject: [PATCH] temp workspace was created in the wrong location Due to the use of the wrong workspace folder some remnant directories have been created in the projects root directory instead of the target directory Signed-off-by: Juergen Albert Signed-off-by: BJ Hargrave --- .../java/aQute/bnd/maven/generate/plugin/BndContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java b/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java index 385cfe34d7..3bf4bf26b2 100644 --- a/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java +++ b/maven/bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin/BndContainer.java @@ -153,6 +153,7 @@ public int generate(String task, File workingDir, GenerateOperation operation, S bnd.setProperties(properties.replaceHere(project.getBasedir())); bnd.setProperty("project.output", workingDir.getCanonicalPath()); + bnd.setProperty(aQute.bnd.osgi.Constants.DEFAULT_PROP_TARGET_DIR, workingDir.getCanonicalPath()); if (logger.isDebugEnabled()) { logger.debug("Generate Project Properties"); @@ -170,7 +171,7 @@ public int generate(String task, File workingDir, GenerateOperation operation, S } public Project init(String task, File wsDir, File workingDir, Properties mavenProperties) throws Exception { - File temporaryDir = workingDir.toPath() + File temporaryDir = wsDir.toPath() .resolve("tmp") .resolve(task) .toFile();