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





------- Additional Comments From [EMAIL PROTECTED]  2003-10-14 16:42 -------
This may be a problem on a windows platform.
The follows works on unix:
<project name="temp" basedir="/" default="test">
  <target name="test">
    <available file="jedit.jar" property="jedit.exists"
               filepath="/home/preilly/apps/jedit"/>
    <echo message="jedit.exists: ${jedit.exists}"/>
  </target>
</project>

I do not have windows, so cannot test.
Try dropping the basedir setting.

The code that looks incorrect with c:\ is:
Available.java:
    public void setFile(File file) {
        this.file = FileUtils.newFileUtils()
            .removeLeadingPath(getProject().getBaseDir(), file);
    }


Your trace shows that it adds the c:\ to the file, on unix
this is not the case.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to