Skip to content

Commit

Permalink
Merge pull request #421 from jamezp/WFMP-227-4.2
Browse files Browse the repository at this point in the history
[WFMP-227] Do not append the build directory to defined provisioning …
  • Loading branch information
jamezp committed Nov 18, 2023
2 parents 27d7121 + 4accc60 commit 2614cdf
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ protected void serverProvisioned(Path jbossHome) throws MojoExecutionException,
if (!skipDeployment) {
final Path deploymentContent = getDeploymentContent();
if (Files.exists(deploymentContent)) {
Path standaloneDeploymentDir = Paths
.get(project.getBuild().getDirectory(), provisioningDir, "standalone", "deployments").normalize();
Path standaloneDeploymentDir = Path.of(provisioningDir, "standalone", "deployments");
if (!standaloneDeploymentDir.isAbsolute()) {
standaloneDeploymentDir = Path.of(project.getBuild().getDirectory()).resolve(standaloneDeploymentDir);
}
try {
Path deploymentTarget = standaloneDeploymentDir.resolve(getDeploymentTargetName());
getLog().info("Copy deployment " + deploymentContent + " to " + deploymentTarget);
Expand Down

0 comments on commit 2614cdf

Please sign in to comment.