@@ -43,18 +43,18 @@ public static TargetConnection getInstance() {
43
43
public void openConnection () throws TargetConnectionException {
44
44
if (dbg ) StdStreams .vrb .println ("[TARGET] Open connection" );
45
45
try {
46
- String currLoc = new File ("." ).getAbsolutePath ();
47
- currLoc = currLoc .replace (currLoc .substring (currLoc .length ()-1 ), "" );
48
- currLoc += "\\ startOpenocd-local.bat" ;
49
- String name = "F:\\ openocd-0.10.0\\ startOpenocdMicrozed.bat" ;
50
- // StdStreams.vrb.println("run openocd: " + name);
51
- File dir = new File ("F:\\ openocd-0.10.0" );
52
- Process p = Runtime .getRuntime ().exec ("cmd /c start \" \" " + name , null , dir );
53
- if (p != null ) {
54
- if (dbg ) StdStreams .vrb .println ("OpenOCD process not null, " + p .toString ());
55
- } else {
56
- if (dbg ) StdStreams .vrb .println ("OpenOCD process null" );
57
- }
46
+ // String currLoc = new File(".").getAbsolutePath();
47
+ // currLoc = currLoc.replace(currLoc.substring(currLoc.length()-1), "");
48
+ // currLoc += "\\startOpenocd-local.bat";
49
+ // String name = "F:\\openocd-0.10.0\\startOpenocdMicrozed.bat";
50
+ //// StdStreams.vrb.println("run openocd: " + name);
51
+ // File dir = new File("F:\\openocd-0.10.0");
52
+ // Process p = Runtime.getRuntime().exec("cmd /c start \"\" " + name, null, dir);
53
+ // if (p != null) {
54
+ // if (dbg) StdStreams.vrb.println("OpenOCD process not null, " + p.toString());
55
+ // } else {
56
+ // if (dbg) StdStreams.vrb.println("OpenOCD process null");
57
+ // }
58
58
59
59
socket = new Socket (hostname , port );
60
60
socket .setSoTimeout (1000 );
0 commit comments