Skip to content

Commit

Permalink
Merge pull request #47 from graalvm/gradinac/gradle-agent-mode-fix
Browse files Browse the repository at this point in the history
Fix the search path for agent collected config in the agent mode
  • Loading branch information
gradinac authored Jun 15, 2021
2 parents 4aff5ee + 34f560a commit acf1474
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ protected void configure(Project project, String sourceSetName) {
}

if (project.hasProperty(Utils.AGENT_PROPERTY) || getAgent().get()) {
Path agentOutput = GradleUtils.getTargetDir(project)
.resolve(Utils.AGENT_OUTPUT_FOLDER).toAbsolutePath();
Path agentOutput = project.getBuildDir().toPath()
.resolve(Utils.AGENT_OUTPUT_FOLDER).resolve(sourceSetName).toAbsolutePath();

if (!agentOutput.toFile().exists()) {
// Maybe user chose to persist configuration into the codebase, so lets also check if that folder exists.
Expand Down

0 comments on commit acf1474

Please sign in to comment.