modified to recognize Mac.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3101 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-04-14 17:35:57 +00:00
1 parent 9b5984dfb4
commit d1b2723770
1 file changed
+2 -1
+2 -1
View File
@@ -1379,7 +1379,8 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
}
File toolsJar = new File(f,"lib/tools.jar");
if(!toolsJar.exists()) {
File mac = new File(f,"Classes/classes.jar");
if(!toolsJar.exists() && !mac.exists()) {
error(f+" doesn't look like a JDK directory");
return;
}