geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r566897 - /geronimo/sandbox/gshell/trunk/javacc-maven-plugin/src/main/groovy/org/apache/geronimo/gshell/maven/javacc/JavaccMojoSupport.groovy
Date Fri, 17 Aug 2007 01:05:15 GMT
Author: jdillon
Date: Thu Aug 16 18:05:14 2007
New Revision: 566897

URL: http://svn.apache.org/viewvc?view=rev&rev=566897
Log:
Slightly *safer*

Modified:
    geronimo/sandbox/gshell/trunk/javacc-maven-plugin/src/main/groovy/org/apache/geronimo/gshell/maven/javacc/JavaccMojoSupport.groovy

Modified: geronimo/sandbox/gshell/trunk/javacc-maven-plugin/src/main/groovy/org/apache/geronimo/gshell/maven/javacc/JavaccMojoSupport.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/javacc-maven-plugin/src/main/groovy/org/apache/geronimo/gshell/maven/javacc/JavaccMojoSupport.groovy?view=diff&rev=566897&r1=566896&r2=566897
==============================================================================
--- geronimo/sandbox/gshell/trunk/javacc-maven-plugin/src/main/groovy/org/apache/geronimo/gshell/maven/javacc/JavaccMojoSupport.groovy
(original)
+++ geronimo/sandbox/gshell/trunk/javacc-maven-plugin/src/main/groovy/org/apache/geronimo/gshell/maven/javacc/JavaccMojoSupport.groovy
Thu Aug 16 18:05:14 2007
@@ -74,7 +74,8 @@
                 def filepath = "${clazz.getPackage()}/${clazz.name}".replace('.', '/') +
'.java'
                 
                 for (String sourceRoot in project.compileSourceRoots) {
-                    def file = new File("$sourceRoot/$filepath")
+                    def dir = new File(sourceRoot)
+                    def file = new File(dir, filepath)
                     
                     if (file.exists()) {
                         log.info("Omitting $clazz.name, already exists in source tree")



Mime
View raw message