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               |
*-----------------------------------------------------*

Reply via email to