From 7e31d9cd98d40fc7b9c2ddb4b13c0f9fead86677 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 3 Dec 2009 00:12:52 +0100 Subject: Fixes to git auto finding on windows and unix. It seems to work fine now on all 3 platforms! --- src/installer/lombok/installer/netbeans/NetbeansFinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/installer/lombok/installer/netbeans/NetbeansFinder.java') diff --git a/src/installer/lombok/installer/netbeans/NetbeansFinder.java b/src/installer/lombok/installer/netbeans/NetbeansFinder.java index 5186d639..16dbf251 100644 --- a/src/installer/lombok/installer/netbeans/NetbeansFinder.java +++ b/src/installer/lombok/installer/netbeans/NetbeansFinder.java @@ -101,7 +101,7 @@ public class NetbeansFinder extends IdeFinder { /** Checks if the provided directory contains 'netbeans.exe', and if so, returns the directory, otherwise null. */ private String findNetbeansOnWindows1(File dir) { - if (new File(dir, "netbeans.exe").isFile()) return dir.getAbsolutePath(); + if (new File(dir, "bin/netbeans.exe").isFile()) return dir.getAbsolutePath(); return null; } @@ -165,7 +165,7 @@ public class NetbeansFinder extends IdeFinder { if (!d.isDirectory()) return; for (File f : d.listFiles()) { if (f.isDirectory() && f.getName().toLowerCase().contains("netbeans")) { - File possible = new File(f, "bin/netbeans.exe"); + File possible = new File(f, "bin/netbeans"); if (possible.exists()) guesses.add(possible.getAbsolutePath()); } } -- cgit