db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1435862 - /db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/TestProcessing.java
Date Sun, 20 Jan 2013 15:05:49 GMT
Author: tfischer
Date: Sun Jan 20 15:05:48 2013
New Revision: 1435862

URL: http://svn.apache.org/viewvc?rev=1435862&view=rev
Log:
use constant for schema dir for easier switching to simple-schema

Modified:
    db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/TestProcessing.java

Modified: db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/TestProcessing.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/TestProcessing.java?rev=1435862&r1=1435861&r2=1435862&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/TestProcessing.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/TestProcessing.java
Sun Jan 20 15:05:48 2013
@@ -43,6 +43,8 @@ import org.junit.Test;
 
 public class TestProcessing
 {
+    private static final String SCHEMA_DIR = "src/test/schema";
+
     @Before
     public void setUp() throws Exception
     {
@@ -87,7 +89,7 @@ public class TestProcessing
         projectPaths.setConfigurationDir(
                 new File("src/main/resources/org/apache/torque/templates/om"));
         projectPaths.setSourceDir(
-                new File("src/test/schema"));
+                new File(SCHEMA_DIR));
         projectPaths.setOutputDirectory(
                 Maven2ProjectPaths.MODIFIABLE_OUTPUT_DIR_KEY,
                 new File("target/generated-sources-2"));
@@ -117,7 +119,7 @@ public class TestProcessing
         projectPaths.setConfigurationDir(
                 new File("src/main/resources/org/apache/torque/templates/sql"));
         projectPaths.setSourceDir(
-                new File("src/test/schema"));
+                new File(SCHEMA_DIR));
         projectPaths.setOutputDirectory(
                 null,
                 new File("target/generated-sql"));
@@ -139,7 +141,7 @@ public class TestProcessing
         projectPaths.setConfigurationDir(
                 new File("src/main/resources/org/apache/torque/templates/sql/createdb"));
         projectPaths.setSourceDir(
-                new File("src/test/schema"));
+                new File(SCHEMA_DIR));
         projectPaths.setOutputDirectory(
                 null,
                 new File("target/generated-sql"));
@@ -161,7 +163,7 @@ public class TestProcessing
         projectPaths.setConfigurationDir(
                 new File("src/main/resources/org/apache/torque/templates/idtable"));
         projectPaths.setSourceDir(
-                new File("src/test/schema"));
+                new File(SCHEMA_DIR));
         projectPaths.setOutputDirectory(
                 null,
                 new File("target/generated-sql"));
@@ -182,7 +184,7 @@ public class TestProcessing
         projectPaths.setConfigurationDir(
                 new File("src/main/resources/org/apache/torque/templates/doc/html"));
         projectPaths.setSourceDir(
-                new File("src/test/schema"));
+                new File(SCHEMA_DIR));
         projectPaths.setOutputDirectory(
                 null,
                 new File("target/generated-docs"));
@@ -203,7 +205,7 @@ public class TestProcessing
         projectPaths.setConfigurationDir(
                 new File("src/main/resources/org/apache/torque/templates/doc/xdoc"));
         projectPaths.setSourceDir(
-                new File("src/test/schema"));
+                new File(SCHEMA_DIR));
         projectPaths.setOutputDirectory(
                 null,
                 new File("target/generated-xdocs"));



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message