Only process XML files in layoutopt.

Change-Id: I847109409601ccfbb10abff3b9972afdb3032821
This commit is contained in:
Romain Guy
2009-10-05 12:08:48 -07:00
parent d01b8dd3c7
commit 06d3ec157e

View File

@@ -49,7 +49,7 @@ public class Main {
private static void analyzeFiles(File[] files) {
LayoutAnalyzer analyzer = new LayoutAnalyzer();
for (File file : files) {
if (file.isFile()) {
if (file.isFile() && file.getName().endsWith(".xml")) {
analyze(analyzer, file);
} else {
analyzeFiles(file.listFiles());
@@ -95,7 +95,7 @@ public class Main {
List<File> files = new ArrayList<File>();
for (String path : args) {
File file = new File(path);
if (file.exists()) {
if (file.exists() && (file.isDirectory() || file.getName().endsWith(".xml"))) {
files.add(file);
}
}