ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: svn commit: r718633 - in /ant/core/trunk: WHATSNEW docs/manual/CoreTypes/resources.html src/tests/antunit/taskdefs/war-test.xml
Date Wed, 19 Nov 2008 06:20:17 GMT
>+ * 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


Mime
View raw message