Just my 2 cents as an additional note and word of warning: Marc, you probably forgot - while exec files are OS independent, they are heavily coupled to bytecode, i.e. copy is safe if bytecode doesn't change between tests and report generation. And if my memory is correct, then we had an examples, where simple recompilation without changes in environment (same Javac and so on) produces different bytecode.
On Wednesday, September 7, 2016 at 8:26:10 PM UTC+2, Marc R. Hoffmann wrote: > > Hi, > > exec files are platform independent. Note however, that they might be > incompatible between different JaCoCo releases, see > https://github.com/jacoco/jacoco/wiki/ExecFileVersions. > > It might be helpful if you provide the full errer message ans stack trace. > > Regards, > -marc > > On 07.09.16 13:58, [email protected] wrote: > > Can we copy jacoco.exec ( execution data file) generated on linux to > Windows and use it as input for merge ANT target? We are getting cannot > read file(execution data file copied from linux) error while merge. Is > there any way to fix this? More details below... > > > > We want to merge execution data files generated on different envs (one > generated on Linux for selenium and other generated on Windows for jUnits) > to get a combined coverage report. We are using ANT, "jacoco:merge" is > being run on Windows. We have copied jacoco.exec from Linux to Windows and > trying to merge the files. > > > > -- 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/7f242848-ed4e-4efe-99ec-482e7e2f20e4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
