--- groovy-core-GROOVY_1_8_9/src/main/org/codehaus/groovy/ant/Groovyc.java 2023-09-26 13:31:23.336209403 +0200 +++ groovy-core-GROOVY_1_8_9/src/main/org/codehaus/groovy/ant/Groovyc.java 2023-09-26 13:31:35.556291444 +0200 @@ -53,11 +53,11 @@ import java.util.Arrays; import java.util.Enumeration; import java.util.Iterator; -import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.StringTokenizer; +import java.util.TreeSet; /** * Compiles Groovy source files. This task can take the following arguments: @@ -127,7 +127,7 @@ private boolean keepStubs; private String scriptBaseClass; - private Set scriptExtensions = new LinkedHashSet(); + private Set scriptExtensions = new TreeSet(); /** * Adds a path for source compilation. @@ -658,7 +658,7 @@ */ protected void resetFileLists() { compileList = new File[0]; - scriptExtensions = new LinkedHashSet(); + scriptExtensions = new TreeSet(); } /** --- groovy-core-GROOVY_1_8_9/src/main/org/codehaus/groovy/tools/FileSystemCompiler.java 2023-09-26 13:31:23.359542893 +0200 +++ groovy-core-GROOVY_1_8_9/src/main/org/codehaus/groovy/tools/FileSystemCompiler.java 2023-09-26 13:54:05.625117288 +0200 @@ -246,6 +246,7 @@ if (errors) { return null; } else { + Collections.sort(fileList); return fileList.toArray(new String[fileList.size()]); } }