Skip to content

Commit 593863f

Browse files
ghquantgraemerocher
authored andcommitted
GRAILS-5312 fixed always compile spring/resources.groovy on Windows
1 parent 0558432 commit 593863f

File tree

1 file changed

+1
-1
lines changed
  • grails-core/src/main/groovy/org/codehaus/groovy/grails/compiler

1 file changed

+1
-1
lines changed

grails-core/src/main/groovy/org/codehaus/groovy/grails/compiler/Grailsc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected void scanDir(File srcDir, File destDir, String[] files) {
4848
File df = null;
4949
if (f.endsWith(".groovy")) {
5050
df = new File(destPath, f.substring(0, f.length()-7) + ".class");
51-
int i = f.lastIndexOf('/');
51+
int i = f.lastIndexOf(File.separator);
5252
if (!df.exists() && i > -1) {
5353
// check root package
5454
File tmp = new File(destPath, f.substring(i, f.length()-7) + ".class");

0 commit comments

Comments
 (0)