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 42735] - New behavior of Ant-1.7.0 <available> task with <fileset>
Date Mon, 25 Jun 2007 17:01:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42735>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42735





------- Additional Comments From peterreilly@apache.org  2007-06-25 10:01 -------
Thanks for the report and especially thanks for
the build file.

Available has changed in ant 1.7.0, in ant 1.6.5 and lower
available would search all the parent directories for
a file. This was not expected behavior, 
see: http://issues.apache.org/bugzilla/show_bug.cgi?id=39549
the question was raised on the dev list and it was decided
to change the code.
This however has introduced a bug, with the filelist.

I have made a fix, however, exist9 will still not
find a file.

the dir layout is:
 ./subDir/list.xml

the filepath is subDir/subsubDir
since subDir/subsubDir/list.xml does not exist, the test
will fail.

One can use the (ant 1.7.0) attribute seachparents to get
the old behavior:
   <condition property="exist9" value="true">
      <available searchparents="yes" file="list.xml" filepath="subDir/subSubDir" >
      </available>
    </condition>
 


- for example one
may look for a file named "etc" 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message