You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2005/05/31 19:53:46 UTC
svn commit: r179247 -
/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
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);