Skip to content

Commit

Permalink
Fix jacoco agent temp location in build.gradle (#249)
Browse files Browse the repository at this point in the history
The path in /tmp did not have a trailing `/` which makes gradle fail on
Linux build environments with a permission error when trying to write to
`/tmpjacocoagent.jar` (in the root folder) rather than
`/tmp/jacocoagent.jar`.

Fix by adding a `/` after `/tmp`
  • Loading branch information
akarollil authored Aug 5, 2021
1 parent 2261967 commit 39002d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ subprojects {
def jacocoJarPath = project.zipTree(configurations.jacocoAgent.singleFile).filter({
it.name == 'jacocoagent.jar'
}).asPath
def jacocoLocation = System.getProperty('java.io.tmpdir') + "jacocoagent.jar"
def jacocoLocation = System.getProperty('java.io.tmpdir') + "/jacocoagent.jar"

def integrationTestCoverageExecutionData = "${buildDir}/integrationTestCoverageReport.exec"

Expand Down

0 comments on commit 39002d3

Please sign in to comment.