ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19866] New: - Available not using passed filepath
Date Mon, 12 May 2003 20:11:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19866>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19866

Available not using passed filepath

           Summary: Available not using passed filepath
           Product: Ant
           Version: 1.5.3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jhkeller@ucdavis.edu


The available task does not seem to be using the passed in filepath.  I've
attempted to include it in two ways: via the nested <filepath> attribute (with
enclosed <dirset> and by generating a path object in the same way, using
<pathconvert> and passing it in as an attribute.  Finally, I hard-coded a string
into the attribute.

This code:
<project name="temp" basedir="C:\" default="test">
  <target name="test">
    <available file="jedit.exe" property="jedit.exists" filepath="C:\jedit"/>
    <echo message="jedit.exists: ${jedit.exists}"/>
  </target>
</project>

Yields the following:
Apache Ant version 1.5.3 compiled on April 16 2003
Searching for build.xml ...
Buildfile: C:\sdk\build.xml
Detected Java version: 1.4 in: C:\jdk\jre
Detected OS: Windows 2000
parsing buildfile C:\sdk\build.xml with URI = file:C:/sdk/build.xml
Project base dir set to: C:\
Build sequence for target `test' is [test]
Complete build sequence is [test]

test:
Unable to find file C:\jedit.exe to set property jedit.exists
Property ${jedit.exists} has not been set
jedit.exists: ${jedit.exists}

Note that it only tested for C:\jedit.exe.  It should have tested for
C:\jedit\jedit.exe

Mime
View raw message