jdk/make/common/shared/Defs.gmk
changeset 140 3d601b5affa3
parent 33 51a7bc3e93a0
child 302 db91bac7385f
child 307 18015b31ef73
--- a/jdk/make/common/shared/Defs.gmk	Tue Mar 18 11:06:34 2008 -0700
+++ b/jdk/make/common/shared/Defs.gmk	Tue Mar 18 11:08:09 2008 -0700
@@ -503,6 +503,24 @@
   endif
 endif
 
+# Utilities ant and findbugs
+ifeq ($(ANT_HOME),)
+  ANT_HOME := $(call DirExists,/usr/share/ant,$(JDK_DEVTOOLS_DIR)/share/ant/latest,)
+endif
+ifeq ($(ANT_HOME),)
+  ANT = ant
+else
+  ANT = $(ANT_HOME)/bin/ant
+endif
+ifeq ($(FINDBUGS_HOME),)
+  FINDBUGS_HOME := $(call DirExists,/usr/share/findbugs,$(JDK_DEVTOOLS_DIR)/share/findbugs/latest,)
+endif
+ifeq ($(FINDBUGS_HOME),)
+  FINDBUGS = findbugs
+else
+  FINDBUGS = $(FINDBUGS_HOME)/bin/findbugs
+endif
+
 ifdef ALT_COPYRIGHT_YEAR
   COPYRIGHT_YEAR = $(ALT_COPYRIGHT_YEAR)
 else