ModuleInfo(String modulepath) throws Exception {\r
this.modulepath = modulepath;\r
\r
- ModuleInfo.ui.println("Choose where to place the result");\r
- if ((outputpath = ModuleInfo.ui.getFilepath()) == null) {\r
- outputpath = modulepath; \r
+ if (ModuleInfo.defaultoutput) {\r
+ this.outputpath = this.modulepath.replaceAll(Common.strseparate, "$1");\r
+ } else {\r
+ ModuleInfo.ui.println("Choose where to place the result");\r
+ if ((outputpath = ModuleInfo.ui.getFilepath()) == null) {\r
+ outputpath = modulepath; \r
+ }\r
+ ModuleInfo.ui.println("Output to: " + outputpath);\r
}\r
- ModuleInfo.ui.println(outputpath);\r
}\r
\r
public String modulepath = null;\r
}\r
}\r
\r
- private static final boolean isModule(String path) {\r
+ public static final boolean isModule(String path) {\r
String[] list = new File(path).list();\r
for (int i = 0 ; i < list.length ; i++) {\r
if (!new File(list[i]).isDirectory()) {\r
\r
ModuleInfo.ui.println("Errors Left : " + ModuleInfo.db.error);\r
ModuleInfo.ui.println("Complete!");\r
- ModuleInfo.ui.println("Your R9 module was placed here: " + mi.modulepath + File.separator + "result");\r
- ModuleInfo.ui.println("Your logfile was placed here: " + mi.modulepath);\r
+ //ModuleInfo.ui.println("Your R9 module was placed here: " + mi.modulepath + File.separator + "result");\r
+ //ModuleInfo.ui.println("Your logfile was placed here: " + mi.modulepath);\r
}\r
\r
private static final void show(Set<String> hash, String show) {\r
\r
public static boolean printModuleInfo = false;\r
public static boolean doCritic = false;\r
+ public static boolean defaultoutput = false;\r
\r
public static void main(String[] args) throws Exception {\r
ui = FirstPanel.init();\r