diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-12-03 00:12:52 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-12-03 00:12:52 +0100 |
commit | 7e31d9cd98d40fc7b9c2ddb4b13c0f9fead86677 (patch) | |
tree | ae8d191730c0c42391f3555ce6afd05f8b316f9e /src/installer/lombok/installer/netbeans/NetbeansFinder.java | |
parent | e3e8bb2e1dc4c9b0ffb30401da53382089e93ca9 (diff) | |
download | lombok-7e31d9cd98d40fc7b9c2ddb4b13c0f9fead86677.tar.gz lombok-7e31d9cd98d40fc7b9c2ddb4b13c0f9fead86677.tar.bz2 lombok-7e31d9cd98d40fc7b9c2ddb4b13c0f9fead86677.zip |
Fixes to git auto finding on windows and unix. It seems to work fine now on all 3 platforms!
Diffstat (limited to 'src/installer/lombok/installer/netbeans/NetbeansFinder.java')
-rw-r--r-- | src/installer/lombok/installer/netbeans/NetbeansFinder.java | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } } |