Changeset 18 for trunk/openjdk/jdk/make


Ignore:
Timestamp:
Jun 9, 2010, 5:23:43 PM (15 years ago)
Author:
dmik
Message:

make: Use platform specific extensions when searching for ant in $ANT_HOME/bin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/make/common/shared/Defs-utils.gmk

    r10 r18  
    7070# Ant
    7171ifdef ANT_HOME
    72   ANT = $(ANT_HOME)/bin/ant
     72  ifeq ($(PLATFORM), windows)
     73    ANT = $(subst \,/,$(ANT_HOME))/bin/ant.bat
     74  else
     75  ifeq ($(PLATFORM), os2)
     76    ANT = $(subst \,/,$(ANT_HOME))/bin/ant.cmd
     77  else
     78    ANT = $(ANT_HOME)/bin/ant
     79  endif
     80  endif
    7381  ifneq ($(shell test -x $(ANT); echo $$?), 0)
    74     $(error "$(ANT) not found; please update ANT_HOME")
     82    $(error $(ANT) not found -- please update ANT_HOME)
    7583  endif
    7684else
    7785  ANT = ant
    7886  ifneq ($(shell which $(ANT) > /dev/null; echo $$?), 0)
    79     $(error "\"ant\" not found; please set ANT_HOME or put \"ant\" on your PATH")
     87    $(error 'ant' not found -- please set ANT_HOME or put 'ant' on your PATH)
    8088  endif
    8189endif
Note: See TracChangeset for help on using the changeset viewer.