how to specify set of files to be copied in lib while creating war

Posted by Jigar Shah on Stack Overflow See other posts from Stack Overflow or by Jigar Shah
Published on 2009-11-18T11:38:14Z Indexed on 2010/04/14 12:03 UTC
Read the original article Hit count: 341

Filed under:

This is my build target

   <target name="build-war" depends="build-java">        
     <war destfile="${dist.dir}/${std.war.file}" webxml="${resources.dir}/WEB-INF/web.xml">  
      <fileset dir="${jsp.dir}" />
       <lib dir="${lib.dir}"/>  
       <classes dir="${build.classes.dir}" />  
     </war>  
   </target>

Here for <lib> can i specify some how a fileset / pattern set ?

  1. Basically i want to copy different jar from different places. (Not in one directlry)

  2. And That fileset or patternset i want to be defined in another build file which actually imports this build file.

       <lib refid="${patternset.id}"/>
    

© Stack Overflow or respective owner

Related posts about ant