You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ja...@rzf.fin-nrw.de on 2008/11/19 07:20:17 UTC

AW: svn commit: r718633 - in /ant/core/trunk: WHATSNEW docs/manual/CoreTypes/resources.html src/tests/antunit/taskdefs/war-test.xml

>+ * a new resource collection <mappedresources> generalizes the prefix
>+   and fullpath attributes of <zipfileset> to arbitrary mappers that
>+   can be applied to arbitrary resource collections.
>+   Bugzilla Report 4240.
>+
>+  <p>Creates a WAR archive adding all CLASSPATH entries that are files
>+    to the <code>WEB-INF/lib</code> directory without keeping their
>+    files-system structure.</p>
>+
>+  <pre>
>+    &lt;war destfile="${output}"&gt;
>+      &lt;mappedresources&gt;
>+        &lt;restrict&gt;
>+          &lt;path path="${java.class.path}"/&gt;
>+          &lt;type type="file"/&gt;
>+        &lt;/restrict&gt;
>+        &lt;chainedmapper&gt;
>+          &lt;flattenmapper/&gt;
>+          &lt;globmapper from="*" to="WEB-INF/lib/*"/&gt;
>+        &lt;/chainedmapper&gt;
>+      &lt;/mappedresources&gt;
>+    &lt;/war&gt;
>+  </pre>    
>+</blockquote>


Are these closed now?
* https://issues.apache.org/bugzilla/show_bug.cgi?id=19523
  zip/unzip should have the capability to use a mapper
  Opened: 2003-05-01 18:01 PST
* https://issues.apache.org/bugzilla/show_bug.cgi?id=31947
  War task should flatten files in <lib> element
  Opened: 2004-10-28 21:17 PST


Jan

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


Re: svn commit: r718633 - in /ant/core/trunk: WHATSNEW docs/manual/CoreTypes/resources.html src/tests/antunit/taskdefs/war-test.xml

Posted by Stefan Bodewig <bo...@apache.org>.
On 2008-11-19, <Ja...@rzf.fin-nrw.de> wrote:

> Are these closed now?

I obviously didn't search hard enough for duplicates. 8-)


> * https://issues.apache.org/bugzilla/show_bug.cgi?id=19523
>   zip/unzip should have the capability to use a mapper
>   Opened: 2003-05-01 18:01 PST

Not fully since the initial use case involves zipgroupfileset which is
not a resource collection and thus cannot be wrapped in
mappedresources.


> * https://issues.apache.org/bugzilla/show_bug.cgi?id=31947
>   War task should flatten files in <lib> element
>   Opened: 2004-10-28 21:17 PST

Yep, I closed it just now.

Stefan

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