Skip to content

Commit

Permalink
build(examples): fix jacoco report path (#5370)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Martina <martina.marcello.rinaldo@outlook.com>
  • Loading branch information
marcellorinaldo authored Sep 24, 2024
1 parent ea9663a commit d44b609
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

<properties>
<kura.basedir>${project.basedir}/../../..</kura.basedir>
<sonar.coverage.jacoco.xmlReportPaths>
${project.build.directory}/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

<properties>
<kura.basedir>${project.basedir}/../../..</kura.basedir>
<sonar.coverage.jacoco.xmlReportPaths>
${project.build.directory}/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

<properties>
<kura.basedir>${project.basedir}/../../..</kura.basedir>
<sonar.coverage.jacoco.xmlReportPaths>
${project.build.directory}/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

<properties>
<kura.basedir>${project.basedir}/../../..</kura.basedir>
<sonar.coverage.jacoco.xmlReportPaths>
${project.build.directory}/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

<properties>
<kura.basedir>${project.basedir}/../../..</kura.basedir>
<sonar.coverage.jacoco.xmlReportPaths>
${project.build.directory}/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<build>
Expand Down
7 changes: 3 additions & 4 deletions kura/examples/test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${sonar.jacoco.reportPath}</destFile>
<propertyName>jacocoArgs</propertyName>
</configuration>
</execution>
Expand All @@ -267,9 +266,9 @@

<properties>
<kura.basedir>${project.basedir}/../..</kura.basedir>
<tycho.argline>${jacocoArgs} -Dlog4j.configurationFile=file:${kura.basedir}/emulator/org.eclipse.kura.emulator/src/main/resources/log4j.xml</tycho.argline>
<jacoco.reportDir>target/jacoco/</jacoco.reportDir>
<sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath>
<tycho.argline>
${jacocoArgs}
-Dlog4j.configurationFile=file:${kura.basedir}/emulator/org.eclipse.kura.emulator/src/main/resources/log4j.xml</tycho.argline>
</properties>

<modules>
Expand Down

0 comments on commit d44b609

Please sign in to comment.