@@ -92,7 +92,7 @@ public static String searchInstallFolder(String executableName, String searchPat
92
92
}
93
93
94
94
if (Activator .getInstance ().isDebugging ()) {
95
- System .out .println ("Discoverer.searchInstallFolder() resolved path " + resolvedPath );
95
+ System .out .println ("Discoverer.searchInstallFolder() resolved path \" " + resolvedPath + " \" " );
96
96
}
97
97
98
98
// Try paths in order; return the first.
@@ -210,7 +210,7 @@ public static String getLastExecutable(String folderName, final String binFolder
210
210
IPath folderPath = new Path (folderName );
211
211
212
212
if (Activator .getInstance ().isDebugging ()) {
213
- System .out .println ("Discoverer.getLastExecutable(" + folderPath + ", " + executableName + ")" );
213
+ System .out .println ("Discoverer.getLastExecutable(\" " + folderPath + "\" , \" " + executableName + " \ " )" );
214
214
}
215
215
216
216
List <String > list = new ArrayList <String >();
@@ -235,6 +235,9 @@ public boolean accept(File dir, String name) {
235
235
path = path .append (executableName );
236
236
}
237
237
if (path .toFile ().isFile ()) {
238
+ if (Activator .getInstance ().isDebugging ()) {
239
+ System .out .println ("Discoverer.getLastExecutable() found \" " + path .toString () + "\" " );
240
+ }
238
241
return true ;
239
242
}
240
243
return false ;
@@ -258,6 +261,9 @@ public boolean accept(File dir, String name) {
258
261
if (binFolder != null ) {
259
262
path = path .append (binFolder );
260
263
}
264
+ if (Activator .getInstance ().isDebugging ()) {
265
+ System .out .println ("Discoverer.getLastExecutable() = \" " + path .toString () + "\" " );
266
+ }
261
267
return path .toString ();
262
268
} else {
263
269
IPath path = (new Path (folderName ));
@@ -273,10 +279,16 @@ public boolean accept(File dir, String name) {
273
279
if (binFolder != null ) {
274
280
path = path .append (binFolder );
275
281
}
282
+ if (Activator .getInstance ().isDebugging ()) {
283
+ System .out .println ("Discoverer.getLastExecutable() = \" " + path .toString () + "\" " );
284
+ }
276
285
return path .toString ();
277
286
}
278
287
}
279
288
289
+ if (Activator .getInstance ().isDebugging ()) {
290
+ System .out .println ("Discoverer.getLastExecutable() not found" );
291
+ }
280
292
return null ;
281
293
}
282
294
0 commit comments