On 2008-11-26, Brown, Carlton <[EMAIL PROTECTED]> wrote:

> Here is my fantasy code that would accomplish the <unzip> as elegantly
> as the <zip> can be peformed in actuality:
> <unzip src="web.zip">
>       <zipfileset dir="en/html" includes="*" prefix="/root"/>
>       <zipfileset dir="en/jsp" includes="*" prefix="/root"/>
>       <zipfileset dir="static/pdf" includes="*" prefix="/root/pdf"/>
> </unzip>

wouldn't that be

  <copy todir="/root">
    <zipfileset src="web.zip"/>
    <chainedmapper>
      <globmapper from="en/html/*" to="*"/>
      <globmapper from="en/jsp/*" to="*"/>
      <globmapper from="static/pdf/*" to="pdf/*"/>
    </chainedmapper>
  </copy>

the globmappers should ignore all files that don't match the from
patterns.

svn trunk contains a new type of resource collection, the mapped
resource collection that merges mapper and resource collection,
something like

  <mappedresources>
    <zipfileset src="web.zip" includes="en/html/*"/>
    <globmapper from="en/html/*" to="/root/*"/>
  </mappedresources>

Stefan

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

Reply via email to