https://issues.apache.org/bugzilla/show_bug.cgi?id=51442
Bug #: 51442
Summary: available task: Deprecated code breaks contract if
folder exists
Product: Ant
Version: unspecified
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
<property name="folder" value="some-location" />
....
<!-- property 'folder' could be set here - in case not use some default -->
<available file="W:\in\dows" type="dir" property="folder" value="W:\in\dows" />
<available file="/lin/ux" type="dir" property="folder" value="/lin/ux" />
In case the folder named 'W:\in\dows' does not exist, the code works as
expected. The the value of 'folder' is not modified.
In case the folder named 'W:\in\dows' exists the available task complains about
using a DEPRECATED feature and overwrites the property value of 'folder'. I'd
expected not to modify 'folder' because its value has already been set before.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.