Skip to content

Commit

Permalink
Return the packed project artifact as the location of the Artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Jul 28, 2023
1 parent 713fe84 commit 7ff7379
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ public CompletableFuture<File> fetchArtifact() {
@Override
public Optional<File> getLocation() {
if (project != null) {
File packedArtifact = project.getArtifact();
if (packedArtifact != null && packedArtifact.isFile()) {
return Optional.of(project.getArtifact());
}
//TODO this really looks wrong! It should the file of the artifact (if present!) or the output directory,
// but the basedir most likely only works for tycho ...
File basedir = project.getBasedir();
Expand Down

0 comments on commit 7ff7379

Please sign in to comment.