Fix jacoco agent not added to command line (code coverage)
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 4 Feb 2016 22:29:43 +0000 (17:29 -0500)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Fri, 5 Feb 2016 04:58:41 +0000 (23:58 -0500)
It seems that tycho.testArgLine doesn't get set again by
tycho-surefire if it was set in the root properties.
I orginally defined it to nothing so that it would be defined
when running without jacoco. Instead, we can introduce a new
variable and never touch tycho.testArgLine.

Change-Id: I5f2969ad65292ad2e6fa84d3fb46bf925064981c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/65953
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 165a6ec51cc31e00062ad125bd39380410ed812e..02eae8b1ed040fd343686bc2ba046b02696a2e67 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -40,7 +40,7 @@
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-    <tycho.testArgLine></tycho.testArgLine>
+    <testArgLine></testArgLine>
 
     <tycho-version>0.24.0</tycho-version>
     <tycho-extras-version>0.24.0</tycho-extras-version>
           <name>!skip-jacoco</name>
         </property>
       </activation>
+      <properties>
+        <testArgLine>${tycho.testArgLine}</testArgLine>
+      </properties>
       <build>
         <plugins>
           <plugin>
                </dependency>
             </dependencies>
             <product>org.eclipse.platform.ide</product>
-            <argLine>${tycho.testArgLine} ${base.ui.test.vmargs} -Xms512m -Xmx1024m</argLine>
+            <argLine>${testArgLine} ${base.ui.test.vmargs} -Xms512m -Xmx1024m</argLine>
           </configuration>
         </plugin>
 
This page took 0.025876 seconds and 5 git commands to generate.