Skip to content

Commit

Permalink
temp workspace was created in the wrong location
Browse files Browse the repository at this point in the history
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 <j.albert@data-in-motion.biz>
Signed-off-by: BJ Hargrave <bj@hargrave.dev>
  • Loading branch information
juergen-albert authored and bjhargrave committed Nov 26, 2022
1 parent 90d324f commit bb7b8cf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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();
Expand Down

0 comments on commit bb7b8cf

Please sign in to comment.