ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: Detecting jikes compiler
Date Wed, 13 Jun 2001 17:53:21 GMT
At 10:46 AM 6/13/01 -0700, LEVERETT,PAUL (HP-Roseville,ex1) wrote:
>I'm trying to detect the Jikes compiler and have the build process use it
>only if it's available.  The following setting doesn't seem to work:
>
>
><property environment="system_prop." />
>
><target name="check_for_optional_packages">
>  <property name="jikes.compiler" value="${system_prop.PATH}/jikes.exe"/>
>  <available file="${jikes.compiler}" property="build.compiler"
>value="jikes"/>
></target>
>
>Can anyone point out the problem?

yep - traditionally the PATH environment variable is not a single directory
but a list of directories. (ie /usr/bin:/bin:/sbin:/usr/sbin or
\Progra~1\ant;\Progra~1\blah;\windows). Thus simply appending "/jikes.exe"
is unlikely to pruce a valid filename. Hence it will not be found in
available task.

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


Mime
View raw message