How to perform ant path mapping in war task?
        Posted  
        
            by eljenso
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by eljenso
        
        
        
        Published on 2010-05-10T12:46:46Z
        Indexed on 
            2010/05/10
            12:54 UTC
        
        
        Read the original article
        Hit count: 396
        
I have several JAR file pattern sets, like
  <patternset id="common.jars">
 <include name="external/castor-1.1.jar" />
 <include name="external/commons-logging-1.2.6.jar" />
 <include name="external/itext-2.0.4.jar" />
     ...
  </patternset>
I also have a war task containing a lib element:
...
Like this however, I end up with a WEB-INF/lib containing the subdirectories from my patterns:
WEB-INF/lib/external/castor-1.1.jar
WEB-INF/lib/external/...
Is there any way to flatten this, so the JAR files appear top-level under WEB-INF/lib, regardless of the directories specified in the patterns? I looked at mapper but it seems you cannot use them inside lib.
© Stack Overflow or respective owner