Fix a build error

which occurred when -Pcoverage was not specified
This commit is contained in:
Trustin Lee 2014-02-08 09:12:56 -08:00
parent e592d06364
commit 50b862349c

View File

@ -87,6 +87,9 @@
</profile> </profile>
<profile> <profile>
<id>coverage</id> <id>coverage</id>
<properties>
<test.jvm.argLine.coverage>${jacoco.argLine}</test.jvm.argLine.coverage>
</properties>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -99,6 +102,9 @@
<goals> <goals>
<goal>prepare-agent</goal> <goal>prepare-agent</goal>
</goals> </goals>
<configuration>
<propertyName>jacoco.argLine</propertyName>
</configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
@ -111,6 +117,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jboss.marshalling.version>1.3.18.GA</jboss.marshalling.version> <jboss.marshalling.version>1.3.18.GA</jboss.marshalling.version>
<test.jvm.argLine.coverage></test.jvm.argLine.coverage> <!-- Set when 'coverage' profile is active -->
<test.jvm.argLine> <test.jvm.argLine>
-server -server
-dsa -da -ea:io.netty... -dsa -da -ea:io.netty...
@ -467,7 +474,7 @@
<exclude>**/TestUtil*</exclude> <exclude>**/TestUtil*</exclude>
</excludes> </excludes>
<runOrder>random</runOrder> <runOrder>random</runOrder>
<argLine>${argLine} ${test.jvm.argLine}</argLine> <argLine>${test.jvm.argLine.coverage} ${test.jvm.argLine}</argLine>
</configuration> </configuration>
</plugin> </plugin>
<!-- always produce osgi bundles --> <!-- always produce osgi bundles -->