directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r106985 - /incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java
Date Tue, 30 Nov 2004 05:22:31 GMT
Author: akarasulu
Date: Mon Nov 29 21:22:29 2004
New Revision: 106985

URL: http://svn.apache.org/viewcvs?view=rev&rev=106985
Log:
Found and fixed bug where duplicate classes were being generated.  Basically
the plugin tests to see if a class already exists for the schema file in the
${build.src} directory directory.  It did not use the basedir of maven so it
failed to check paths appropriately and regenerated the schema files which
should not be generated if hand woven.

Modified:
   incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java

Modified: incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java
Url: http://svn.apache.org/viewcvs/incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java?view=diff&rev=106985&p1=incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java&r1=106984&p2=incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java&r2=106985
==============================================================================
--- incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java
(original)
+++ incubator/directory/eve/trunk/maven-eve-plugin/src/java/org/apache/eve/tools/schema/EveSchemaTool.java
Mon Nov 29 21:22:29 2004
@@ -336,9 +336,11 @@
 
         // check to see if any of the classes are available in the java 
         // source directory, if so we return true
-        File defaultFile = new File( "src" + File.separator + "java"
+        File defaultFile = new File( basedir + File.separator +
+                "src" + File.separator + "java"
                 + File.separator + getFilePath( defaultClass ) );
-        File targetFile = new File( "src" + File.separator + "java"
+        File targetFile = new File( basedir + File.separator +
+                "src" + File.separator + "java"
                 + File.separator + getFilePath( targetClass ) );
 
         return defaultFile.exists() || targetFile.exists();

Mime
View raw message