ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Thomas Jahr <Per.Thomas.J...@nr.no>
Subject How to use the <available> task?
Date Tue, 03 Apr 2001 08:21:25 GMT
I want to check if the commapi.jar is available in the projects
classpath. I wrote something like this:

<target name="checkcommapi">
    <available file="commapi.jar" property="commapipresent"/>
    <echo> 
      ${commapipresent}
    </echo>
</target>

But it seems like the property commapipresent always equals false. The
commapi.jar is installed in the jre/lib/ext and should be in the
bootclasspath. When I run ant with -verbose I get this message:

checkcommapi:
[available] Unable to find file H:\projects\imst\IMST\commapi.jar to set
property commapipresent
     [echo]
      false

Has anyone else used the <available> task with sucess? 

Per Thomas

Mime
View raw message