cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r405148 - in /incubator/cayenne/main/trunk/cayenne: cayenne-ant/ant/test.xml cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
Date Mon, 08 May 2006 19:55:40 GMT
Author: aadamchik
Date: Mon May  8 12:55:38 2006
New Revision: 405148

URL: http://svn.apache.org/viewcvs?rev=405148&view=rev
Log:
added a flag to skip schema generation during unit testing

Modified:
    incubator/cayenne/main/trunk/cayenne/cayenne-ant/ant/test.xml
    incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-ant/ant/test.xml
URL: http://svn.apache.org/viewcvs/incubator/cayenne/main/trunk/cayenne/cayenne-ant/ant/test.xml?rev=405148&r1=405147&r2=405148&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-ant/ant/test.xml (original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-ant/ant/test.xml Mon May  8 12:55:38 2006
@@ -87,6 +87,8 @@
 				value="${cayenne.test.config}"/>
 			<sysproperty key="cayenne.test.connection"
 				value="${cayenne.test.connection}"/>
+			<sysproperty key="cayenne.test.schema.skip"
+				value="${cayenne.test.schema.skip}"/>
 			<sysproperty key="cayenne.test.report"
 				value="${cayenne.test.report}"/>
 			<sysproperty key="ant.home" value="${ant.home}"/>

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java?rev=405148&r1=405147&r2=405148&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
(original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
Mon May  8 12:55:38 2006
@@ -211,8 +211,9 @@
      */
     void rebuildSchema() throws Exception {
         
-        if(System.getProperties().containsKey(SKIP_SCHEMA_KEY)) {
+        if("true".equalsIgnoreCase(System.getProperty(SKIP_SCHEMA_KEY))) {
             logObj.info("skipping schema generation... ");
+            return;
         }
         
         // generate schema using a special AccessStack that



Mime
View raw message