You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Burgess, Benjamin" <BB...@tiaa-cref.org> on 2005/08/05 21:47:12 UTC

flattenmapper in war

I am having trouble figuring out where to use a 'flattenmapper' element.
 
The below is from the manual for the 'war' task with a slight change to
the 'lib' element:
 
<war destfile="myapp.war" webxml="src/metadata/myapp.xml">
  <fileset dir="src/html/myapp"/>
  <fileset dir="src/jsp/myapp"/>
  <lib dir="thirdparty/libs">
    <include name="**/*.jar"/>
  </lib>
  <classes dir="build/main"/>
  <zipfileset dir="src/graphics/images/gifs" 
              prefix="images"/>
</war>
 
My question is what if the "thirdparty/libs" directory is structured as
a tree with subdirectories that contain jar files.  The war file would
need to contain just the jar files, not the structure where they were
stored in the "thirdparty/libs" directory.  How could the
'flattenmapper' element be used to fix this?  (This is for a build file
used by multiple projects which are each different).  Would a
pathconvert need to be used just before the 'war' task and then
referenced in the 'lib' some how?
 
Ben

 



**************************************************************
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies.  You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************