wlu: update
diff --git a/org.eclipse.epf.toolbox/src/org/eclipse/epf/toolbox/utils/RenameFiles.java b/org.eclipse.epf.toolbox/src/org/eclipse/epf/toolbox/utils/RenameFiles.java
index 3b480f6..a0a0eaa 100644
--- a/org.eclipse.epf.toolbox/src/org/eclipse/epf/toolbox/utils/RenameFiles.java
+++ b/org.eclipse.epf.toolbox/src/org/eclipse/epf/toolbox/utils/RenameFiles.java
@@ -10,7 +10,13 @@
private static final String rootPath = "C:/a_dev/Tvt/j";
- private static final String props = ".properties";
+ private static final String[] props = {
+ ".properties",
+ ".htm",
+ ".html",
+ ".js",
+ };
+
private static final String epf = "org.eclipse.epf.";
private static final String rmc = "com.ibm.rmc.";
@@ -75,15 +81,19 @@
renameFiles(child);
} else {
String childName = child.getName();
- String newProps = lang + props;
- if (childName.endsWith(props) && !childName.endsWith(newProps)) {
- String oldPath = child.getAbsolutePath();
- int ix = oldPath.lastIndexOf(props);
- String newPath = oldPath.substring(0, ix) + newProps;
- System.out.println("LD> oldPath: " + oldPath);
- System.out.println("LD> newPath: " + newPath + "\n");
- child.renameTo(new File(newPath));
- renamedFileCount++;
+ for (int j = 0; j < props.length; j++) {
+ String prop = props[j];
+ String newProp = lang + prop;
+ if (childName.endsWith(prop) && !childName.endsWith(newProp)) {
+ String oldPath = child.getAbsolutePath();
+ int ix = oldPath.lastIndexOf(prop);
+ String newPath = oldPath.substring(0, ix) + newProp;
+ System.out.println("LD> oldPath: " + oldPath);
+ System.out.println("LD> newPath: " + newPath + "\n");
+ child.renameTo(new File(newPath));
+ renamedFileCount++;
+ break;
+ }
}
}
}