Thanks Evengy, I'd actually just been looking at those docs. I thought it was strange no user property was defined there myself. I look forward to seeing progress on it. If I get the time I'd love to look into it myself.
On Monday, 8 June 2015 19:41:11 UTC+1, Evgeny Mandrikov wrote: > Hi, > > > Strange, but there is no user property by default - see > http://www.eclemma.org/jacoco/trunk/doc/report-mojo.html > I created ticket https://github.com/jacoco/jacoco/issues/322 > Discrepancy in names is also interesting question, but another story. > > > > And in the meantime in order to use "jacoco.dataFile" you can add to pom.xml > something like: > > > <plugin> > <artifactId>jacoco-maven-plugin</artifactId> > <configuration> > <dataFile>${jacoco.dataFile}</dataFile> > </configuration> > </plugin> > > > or even "${jacoco.destFile}", so that it will be set to the same value > automatically. > > > Best regards, > > On Monday, June 8, 2015 at 7:17:47 PM UTC+2, Erran Carey wrote:Question: Is > it possible to set the jacoco dataFile property used by jacoco:report using a > user property? > > > > Problem I'm trying to solve if there's a different solution: > > > > In one of the projects at work we're unable to find jacoco results with > jacoco:report. > > > > The project runs the following maven goals for unit tests > "jacoco:prepare-agent", "surefire:test", and "jacoco:report". This fails with > the following error: > > > > [java] [INFO] --- jacoco-maven-plugin:0.7.1.201405082137:report > (default-cli) @ nexpose-root --- > > [java] [INFO] Skipping JaCoCo execution due to missing execution data > file:/Users/ecarey/rapid7/nexpose/nexpose/src/target/jacoco.exec > > > > The execution data file is not correct. The destFile is set using the > "jacoco.destFile" system property, but the dataFile does not respect this. I > attempted setting "jacoco.dataFile" to no avail. -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/7b2595a1-37af-4a97-a190-de3044fb6fa7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
