destfile agent parameter should be absolute also for default value #301
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
At apache lucene we use carrot labs junit4 (http://labs.carrotsearch.com/randomizedtesting-junit4.html) which spawns multiple JVMs to make use of all of our cpus.
The
jacoco:agent
task made this very easy to integrate, but there was one trick, if you try to change the destination file, the setter always converts it to an absolute path (https://github.com/jacoco/jacoco/blob/master/org.jacoco.ant/src/org/jacoco/ant/AbstractCoverageTask.java#L74). Is this intentional?It seems a little confusing since the default (jacoco.exec) is actually a relative path, but its impossible to set any relative path other than the default since the setter does this conversion.
For us its important that each jvm get a separate file (the easiest way to do that is a relative path), when we create our report we just provide all of them and everything works. The issue is easy to workaround, we just append the filename directly to the result of
jacoco:agent
ourselves, but it doesn't seem quite right.In ant it is easy for someone to convert a relative path to an absolute one in their build script themselves, if they are doing something advanced and really need it.