Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorUwe Stieber2012-03-15 16:21:09 +0000
committerUwe Stieber2012-03-15 16:21:50 +0000
commit2569455f0402142a28e1660a1fb2f63263e0a8cf (patch)
treeeafd3ebfc016348ffcc613c0f380291eda41c44a /admin
parent6de5398e3b3c97d7236b1a5d5a8896c571c79b1e (diff)
downloadorg.eclipse.tcf-2569455f0402142a28e1660a1fb2f63263e0a8cf.tar.gz
org.eclipse.tcf-2569455f0402142a28e1660a1fb2f63263e0a8cf.tar.xz
org.eclipse.tcf-2569455f0402142a28e1660a1fb2f63263e0a8cf.zip
Maven: Optimize JaCoCo build
Diffstat (limited to 'admin')
-rw-r--r--admin/pom-build.xml40
-rw-r--r--admin/pom-config.xml9
2 files changed, 47 insertions, 2 deletions
diff --git a/admin/pom-build.xml b/admin/pom-build.xml
index f565d9be6..1d3f18ed8 100644
--- a/admin/pom-build.xml
+++ b/admin/pom-build.xml
@@ -47,5 +47,45 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>jacoco</id>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/target</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${jacoco.basedir}</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>jacoco.exec</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
</project>
diff --git a/admin/pom-config.xml b/admin/pom-config.xml
index 6b6d4463d..0b7b520df 100644
--- a/admin/pom-config.xml
+++ b/admin/pom-config.xml
@@ -25,6 +25,13 @@
<!-- Common global properties -->
<adminDir>${env.WORKSPACE}/admin</adminDir>
+ <!-- JaCoCo global properties -->
+ <jacoco.basedir>${env.WORKSPACE}/target_explorer/coverage</jacoco.basedir>
+ <jacoco.destFile>${jacoco.basedir}/jacoco.exec</jacoco.destFile>
+ <jacoco.dataFile>${jacoco.basedir}/jacoco.exec</jacoco.dataFile>
+ <jacoco.outputDirectory>${jacoco.basedir}/jacoco</jacoco.outputDirectory>
+ <jacoco.skip>false</jacoco.skip>
+
<!-- P2 repository URL's -->
<platform-site>http://download.eclipse.org/eclipse/updates/3.8milestones</platform-site>
<cdt-site>http://download.eclipse.org/tools/cdt/builds/juno/nightly</cdt-site>
@@ -216,10 +223,8 @@
<goal>prepare-agent</goal>
</goals>
<configuration>
- <append>true</append>
<output>file</output>
<dumpOnExit>true</dumpOnExit>
- <skip>false</skip>
</configuration>
</execution>
</executions>

Back to the top