提交 a9c6462e authored 作者: Thomas Mueller's avatar Thomas Mueller

Javadocs.

上级 3e1c0ac3
...@@ -21,7 +21,13 @@ public class UpgradeCreator { ...@@ -21,7 +21,13 @@ public class UpgradeCreator {
* @param args the command line parameters * @param args the command line parameters
*/ */
private static String[] TEXT_FILE_EXTENSIONS = { ".java", ".xml", ".bat", ".sh", ".txt", ".html", ".csv" }; private static String[] TEXT_FILE_EXTENSIONS = { ".java", ".xml", ".bat", ".sh", ".txt", ".html", ".csv" };
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
if (args.length != 2) { if (args.length != 2) {
System.out.println("Usage: java -cp . org.h2.build.upgrade.UpgradeCreator <srcDir> <destDir>"); System.out.println("Usage: java -cp . org.h2.build.upgrade.UpgradeCreator <srcDir> <destDir>");
...@@ -72,7 +78,7 @@ public class UpgradeCreator { ...@@ -72,7 +78,7 @@ public class UpgradeCreator {
content = content.replaceAll("org\\.h2", "org.h2.upgrade.v1_1"); content = content.replaceAll("org\\.h2", "org.h2.upgrade.v1_1");
content = content.replaceAll("org/h2/", "org/h2/upgrade/v1_1/"); content = content.replaceAll("org/h2/", "org/h2/upgrade/v1_1/");
content = content.replaceAll("jdbc:h2:", "jdbc:h2v1_1:"); content = content.replaceAll("jdbc:h2:", "jdbc:h2v1_1:");
if (file.getName().equals("ConnectionInfo.java")) { if (file.getName().equals("ConnectionInfo.java")) {
content = content.replaceAll("boolean isPersistent\\(\\) \\{", "public boolean isPersistent() {"); content = content.replaceAll("boolean isPersistent\\(\\) \\{", "public boolean isPersistent() {");
content = content.replaceAll("String getName\\(\\) throws SQLException \\{", "public String getName() throws SQLException {"); content = content.replaceAll("String getName\\(\\) throws SQLException \\{", "public String getName() throws SQLException {");
...@@ -89,6 +95,6 @@ public class UpgradeCreator { ...@@ -89,6 +95,6 @@ public class UpgradeCreator {
} }
return false; return false;
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论