ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: How to restrict what goes into my WEB-INF/lib directory?
Date Tue, 12 Aug 2008 23:01:54 GMT

  Hi Dave-

<war ...>
<lib dir="WEB-INF/libs">
    
<exclude name="*.jar"/>
  
<include name="commons-validator-1.3.1.jar"/>
</lib>
</war>

includes only the commons-validator-1.3.1.jar
http://ant.apache.org/manual/CoreTasks/war.html
*** includes includesAll files are included when omitted. ********

HTH
Martin
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 


> From: dave.alvarado@remanresource.com
> To: user@ant.apache.org
> Subject: How to restrict what goes into my WEB-INF/lib directory?
> Date: Tue, 12 Aug 2008 21:09:07 +0000
> 
> Hi,
> 
> I want to instruct ant that upon building a WAR file, only include certain files from
my lib directory in the WEB-INF/lib directory.  However, this doesn't seem to be working
> 
>         <target name="build-war">
>                 <mkdir dir="${build}"/>
>                 <war
>                         basedir="${webroot.dir}"
>                         warfile="${build}/${war-file-name}"
>                         webxml="${webInfDir}/web.xml">
>                         <exclude name="WEB-INF/${build}/**"/>
>                         <exclude name="WEB-INF/src/**"/>
>                         <exclude name="WEB-INF/web.xml"/>
>                         <exclude name="${build}/${war-file-name}"/>
>                         <lib dir="${webInfLibDir}">
>                                 <include name="commons-validator-1.3.1.jar"/>
>                         </lib>
>                 </war>
>         </target>
> 
> Instead ant seems to be including all the jar files in my ${webInfLibDir} instead of
just the one.  Any ideas on why?
> 
> Thanks, - Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

_________________________________________________________________
Reveal your inner athlete and share it with friends on Windows Live.
http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message