Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] tycho-surefire argLine causes no jacaco.exec

Hi,

first of all I'm unsure if I'm posting this in the correct mailing list- please advise if this isn't the correct one or the question has been answered somewhere else.

There seems to be a bug when using the argLine of tycho-surefire together with jacaco. If you do, no jacoco.exec will be generated. I found a similar defect here: http://sourceforge.net/tracker/index.php?func=detail&aid=3556123&group_id=177969&atid=883351 for the maven-surefire plugin.

It can be easily reproduced using the demo at https://github.com/SonarSource/sonar-examples/tree/master/projects/tycho

Use this for the main pom:

<build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>0.16.0</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.6.0.201210061924</version>
        <configuration>
          <includes>example.*</includes>
          <destFile>${project.basedir}/../target/jacoco.exec</destFile>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
       <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>tycho-surefire-plugin</artifactId>
          <version>0.16.0</version>
          <configuration>
               <argLine>-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n</argLine>
          </configuration>
         </plugin>
    </plugins>
  </build>

Regards,
Jan

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.



Back to the top