db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r179247 - /incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
Date Tue, 31 May 2005 17:53:46 GMT
Author: djd
Date: Tue May 31 10:53:46 2005
New Revision: 179247

URL: http://svn.apache.org/viewcvs?rev=179247&view=rev
Log:
Pass system properties for DataSOurce connections (ij.dataSource*) from
RunSuite into the VM invoked for RunTest. Allows suites to be run successfully
using a DataSource to obtain connections.

Modified:
    incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java

Modified: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java?rev=179247&r1=179246&r2=179247&view=diff
==============================================================================
--- incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
(original)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
Tue May 31 10:53:46 2005
@@ -436,6 +436,23 @@
         }
         else if (otherSpecialProps.length()>0)
             jvmProps.addElement("testSpecialProps=" + otherSpecialProps);
+        
+        // Ensure any properties that define the default connection
+        // for the tests to use a DataSource are passed from the
+        // command line onto the RunTest invoked. These properties are
+        //
+        // ij.dataSource=<classname of datasource>
+        //
+        // any number of
+        // ij.dataSource.<datasource property>=<value>
+
+        Properties sysProps = System.getProperties();
+        for (Enumeration e = sysProps.keys(); e.hasMoreElements(); )
+        {
+        	String key = (String) e.nextElement();
+        	if (key.startsWith("ij.dataSource"))
+        		jvmProps.addElement(key + "=" +  sysProps.getProperty(key)); 		
+        }
 
         jvmProps.addElement("suitename=" + suite);
 



Mime
View raw message