db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1448359 - /db/derby/code/trunk/build.xml
Date Wed, 20 Feb 2013 19:23:37 GMT
Author: kristwaa
Date: Wed Feb 20 19:23:37 2013
New Revision: 1448359

URL: http://svn.apache.org/r1448359
Log:
DERBY-6078: Propagate a set of properties to the junit tasks in build.xml

Command line properties are now propagated to the JUnit tasks in build.xml.
Added to be able to specify properties controlling Derby or test behavior
when invoking ant (i.e. ant -Dderby.tests.trace=true junit-all).

Patch file: derby-6078-1a-cmdline_property_passing.diff

Modified:
    db/derby/code/trunk/build.xml

Modified: db/derby/code/trunk/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/build.xml?rev=1448359&r1=1448358&r2=1448359&view=diff
==============================================================================
--- db/derby/code/trunk/build.xml (original)
+++ db/derby/code/trunk/build.xml Wed Feb 20 19:23:37 2013
@@ -2466,6 +2466,10 @@
       <sysproperty key="derbyTesting.oldReleasePath" value="${derbyTesting.oldReleasePath}"/>
       <!-- This property is needed to keep EMMA silent when measuring codecoverage -->
       <sysproperty key="emma.verbosity.level" value="silent"/>
+      <!-- Pass on properties from the command line to the spawned VM. -->
+      <syspropertyset id="system-properties-passed-on">
+        <propertyref builtin="commandline"/>
+      </syspropertyset>
       <!-- Use the system property below to debug lacking java security permissions -->
 <!--      <sysproperty key="java.security.debug" value="access:failure"/> -->
       <formatter type="xml"/>
@@ -2525,6 +2529,10 @@
                failureproperty="tests.failed">
           <jvmarg value="${derby.tests.jacoco.agent}"/>
           <sysproperty key="derby.tests.jacoco.agent" value="${derby.tests.jacoco.agent}"/>
+          <!-- Pass on properties from the command line to the spawned VM. -->
+          <syspropertyset id="system-properties-passed-on">
+            <propertyref builtin="commandline"/>
+          </syspropertyset>
           <formatter type="xml"/>
 
     <test name="org.apache.derbyTesting.system.oe.test.OETest"
@@ -2555,6 +2563,10 @@
   	       failureproperty="tests.failed">
       <jvmarg value="${derby.tests.jacoco.agent}"/>
       <sysproperty key="derby.tests.jacoco.agent" value="${derby.tests.jacoco.agent}"/>
+      <!-- Pass on properties from the command line to the spawned VM. -->
+      <syspropertyset id="system-properties-passed-on">
+        <propertyref builtin="commandline"/>
+      </syspropertyset>
       <formatter type="xml"/>
   	 	
       <test name="org.apache.derbyTesting.functionTests.tests.jdbc4._Suite"
@@ -2579,6 +2591,10 @@
   	       failureproperty="tests.failed">
       <jvmarg value="${derby.tests.jacoco.agent}"/>
       <sysproperty key="derby.tests.jacoco.agent" value="${derby.tests.jacoco.agent}"/>
+      <!-- Pass on properties from the command line to the spawned VM. -->
+      <syspropertyset id="system-properties-passed-on">
+        <propertyref builtin="commandline"/>
+      </syspropertyset>
       <formatter type="xml"/>
   	 	
       <test name="org.apache.derbyTesting.functionTests.tests.memory._Suite"
@@ -2602,6 +2618,10 @@
             failureproperty="tests.failed">
         <jvmarg value="${derby.tests.jacoco.agent}"/>
         <sysproperty key="derby.tests.jacoco.agent" value="${derby.tests.jacoco.agent}"/>
+        <!-- Pass on properties from the command line to the spawned VM. -->
+        <syspropertyset id="system-properties-passed-on">
+          <propertyref builtin="commandline"/>
+        </syspropertyset>
         <formatter type="xml"/>
 
         <test name="org.apache.derbyTesting.functionTests.tests.management._Suite"
@@ -2626,7 +2646,11 @@
             failureproperty="tests.failed">
         <jvmarg value="${derby.tests.jacoco.agent}"/>
         <sysproperty key="derby.tests.jacoco.agent" value="${derby.tests.jacoco.agent}"/>
-        <formatter type="xml"/>
+        <!-- Pass on properties from the command line to the spawned VM. -->
+        <syspropertyset id="system-properties-passed-on">
+          <propertyref builtin="commandline"/>
+        </syspropertyset>
+         <formatter type="xml"/>
 
         <test name="org.apache.derby.PackagePrivateTestSuite"
                 todir="junit_${derby.junit.timestamp}"/>
@@ -2657,8 +2681,13 @@
            failureproperty="tests.failed">
       <jvmarg value="${derby.tests.jacoco.agent}"/>
       <sysproperty key="derby.tests.jacoco.agent" value="${derby.tests.jacoco.agent}"/>
+      <sysproperty key="java.security.debug" value="policy"/>
       <!-- This property is needed to keep EMMA silent when measuring codecoverage -->
       <sysproperty key="emma.verbosity.level" value="silent"/>
+      <!-- Pass on properties from the command line to the spawned VM. -->
+      <syspropertyset id="system-properties-passed-on">
+        <propertyref builtin="commandline"/>
+      </syspropertyset>
       <formatter type="xml"/>
       
       <test name="${derby.junit.testclass}" todir="junit_${derby.junit.timestamp}"/>



Mime
View raw message