https://issues.apache.org/bugzilla/show_bug.cgi?id=45135
Summary: Ant 1.7 a patternset reference cannot be redefined
through itself
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
regression against ant 1.6.5: a patternset cannot be redefined through itself.
the problem may be illustrated using the following sample:
----------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="Show Bug" default="all" basedir=".">
<target name="all">
<patternset id="x.id">
<include name="*.a"/>
</patternset>
<patternset id="x.id">
<patternset refid="x.id"/>
<include name="*.b"/>
</patternset>
<mkdir dir="target"/>
<mkdir dir="src"/>
<copy todir="target">
<fileset dir="src">
<patternset refid="x.id"/>
</fileset>
</copy>
</target>
</project>
----------------------------------
execute this sample with "-debug" key with ant 1.6.5 and 1.7.0:
the log line where the patternset is shown is:
----
Setup scanner in dir /tmp with patternSet{ includes: [*.b, *.a] excludes: [] }
----
for ant 1.6.5, and
----
Setup scanner in dir /tmp with patternSet{ includes: [*.b] excludes: [] }
----
We can see that in 1.7.0 the previous content of the referred patternset is
lost. This is the problem.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.