https://issues.apache.org/bugzilla/show_bug.cgi?id=51462

--- Comment #1 from ahage...@yahoo.com 2011-07-26 20:01:32 UTC ---
This seems to be a general problem with <sync> support for resource
collections. The following exhibits the same behavior:

<target name="test">
  <sync todir="tgt">
    <mappedresources>
      <fileset dir="src"/>
      <globmapper from="*" to="test/*"/>
    </mappedresources>
  </sync>
</target>

Also, according to the documentation, the <sync> task "Synchronize a target
directory from the files defined in one or more Resource Collections", however
only one resource collection is allowed (multiple <fileset>'s work).

The following fails with "Restrict$1 expects exactly one nested resource
collection":

<target name="test">
  <sync todir="tgt">
    <mappedresources>
      <fileset dir="src1"/>
      <globmapper from="*" to="test1/*"/>
    </mappedresources>
    <mappedresources>
      <fileset dir="src2"/>
      <globmapper from="*" to="test2/*"/>
    </mappedresources>
  </sync>
</target>

On a final documentation note, it says that "To use a resource collection, the
todir attribute must be set", which is very redundant since the todir attribute
is required for the <sync> task. Probably a copy/paste from the <copy> task.

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

Reply via email to