Revision 1332

tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/devtools/FindMessagesToBind.java (revision 1332)
6 6
import java.io.PrintWriter;
7 7
import java.io.UnsupportedEncodingException;
8 8
import java.util.ArrayList;
9
import java.util.Collections;
10
import java.util.Comparator;
9 11
import java.util.LinkedHashMap;
12
import java.util.Set;
13
import java.util.TreeSet;
10 14
import java.util.regex.Matcher;
11 15
import java.util.regex.Pattern;
12 16

  
......
139 143

  
140 144
		writer = IOUtils.getWriter(report);
141 145
		int total = 0;
142
		for (File project : h.keySet()) {
146
		
147
		TreeSet<File> projects = new TreeSet(h.keySet());
148
		for (File project : projects) {
143 149

  
144 150
			//System.out.println("Project: "+project);
145 151

  
......
148 154
			if (!srcDir.exists()) continue; // no Java sources
149 155

  
150 156
			ArrayList<File> files = DeleteDir.scanDirectory(srcDir, true);
157
			Collections.sort(files, new Comparator<File>() {
158
				@Override
159
				public int compare(File arg0, File arg1) {
160
					return arg0.getAbsolutePath().compareTo(arg1.getAbsolutePath());
161
				}
162
			});
151 163
			for (File javaFile : files) {
152 164

  
153 165
				if (!javaFile.getName().endsWith(".java")) continue;

Also available in: Unified diff