* This method designates the location of temp directory.\r
* \r
* @param modulepath\r
- * @return\r
+ * @return String\r
*/\r
public static final String getTempDir(String modulepath) {\r
return "C:" + File.separator + "MigrationTool_Temp"\r
+ modulepath.replace(startpath, "");\r
}\r
\r
+ /**\r
+ * This method is the default output path generating scheme.\r
+ * \r
+ * @param inputpath\r
+ * @return String\r
+ */\r
private static final String assignOutPutPath(String inputpath) {\r
if (MigrationTool.defaultoutput) {\r
return inputpath.replaceAll(Common.STRSEPARATER, "$1");\r
}\r
}\r
\r
+ /**\r
+ * This function is called by main loop of the MigrationTool which\r
+ * verifies whether a dir contains a module, thus generating a map\r
+ * which shows the corresponding path for each module.\r
+ * \r
+ * @param filepath\r
+ * @throws Exception\r
+ */\r
public static final void seekModule(String filepath) throws Exception {\r
if (ModuleInfo.isModule(filepath)) {\r
ModuleInfoMap.put(new ModuleInfo(filepath),\r
}\r
}\r
\r
+ /**\r
+ * This is the main loop of the tool.\r
+ * \r
+ * @param path\r
+ * @throws Exception\r
+ */\r
public static final void startMigrateAll(String path) throws Exception {\r
startpath = path;\r
MigrationTool.ui.println("Project Migration");\r
Common.deleteDir("C:" + File.separator + "MigrationTool_Temp");\r
}\r
\r
+ /**\r
+ * This main method initializes the environment. \r
+ * \r
+ * @param args\r
+ * @throws Exception\r
+ */\r
public static void main(String[] args) throws Exception {\r
ui = FirstPanel.getInstance();\r
db = Database.getInstance();\r
}\r
-}\r
+}
\ No newline at end of file