db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmon...@apache.org
Subject svn commit: r750542 - /db/torque/torque4/trunk/maven-torque-plugin/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
Date Thu, 05 Mar 2009 18:32:48 GMT
Author: gmonroe
Date: Thu Mar  5 18:32:47 2009
New Revision: 750542

URL: http://svn.apache.org/viewvc?rev=750542&view=rev
Log:
Modified the test for generated source path so that it is OS independent(path names stored
in MavenProject as OS specific path strings).

Modified:
    db/torque/torque4/trunk/maven-torque-plugin/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java

Modified: db/torque/torque4/trunk/maven-torque-plugin/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/maven-torque-plugin/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java?rev=750542&r1=750541&r2=750542&view=diff
==============================================================================
--- db/torque/torque4/trunk/maven-torque-plugin/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
(original)
+++ db/torque/torque4/trunk/maven-torque-plugin/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
Thu Mar  5 18:32:47 2009
@@ -190,14 +190,15 @@
                         generatedSourcesBasePackageDir
                             + "map/TestTable2MapBuilder.java")
                     .exists());
-
+// "Normalize" path to look up based on OS type using File.
+        String generatedSourcesPath = 
+                            new File(mavenProject.getBuild ().getDirectory()
+                            + "/generated-sources/torque").getCanonicalPath();
         assertTrue(
                 "Project does not contain "
-                    + mavenProject.getBuild().getDirectory()
-                    + "/generated-sources/torque"
+                    + generatedSourcesPath
                     + " as compile source",
-                mavenProject.getCompileSourceRoots().contains(
-                        mavenProject.getBuild ().getDirectory()
-                            + "/generated-sources/torque"));
+                mavenProject.getCompileSourceRoots()
+                                    .contains(generatedSourcesPath));
     }
 }



---------------------------------------------------------------------
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