ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Roodt <gro...@gmail.com>
Subject Re: How can I exclude this directory?
Date Tue, 13 Jan 2009 18:54:53 GMT
Hi
I have never used the war task, but this looks like a FileSet problem.

Try dojo/**

Cheers
Greg


On Tue, Jan 13, 2009 at 6:39 PM, <dave.alvarado@remanresource.com> wrote:

> Hi,
>
> I'm using Ant 1.6 and trying to build my WAR file.  Im my web root
> directory, I have a directory named "dojo" that I wish to exclude from my
> WAR file.  Here is how I construct the WAR file ...
>
>                <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="dojo"/>
>                        <exclude name="${build}/${war-file-name}"/>
>                <lib dir="${webInfLibDir}">
>                <exclude name="*.jar"/>
>                <include name="appUtil.jar"/>
>                <include name="appproperties.jar"/>
>                <include name="commons-beanutils-1.7.0.jar"/>
>                <include name="commons-codec-1.3.jar"/>
>                <include name="commons-collections-3.1.jar"/>
>                <include name="commons-digester-1.6.jar"/>
>                <include name="commons-el-1.0.jar"/>
>                <include name="commons-fileupload-1.0.jar"/>
>                <include name="commons-lang-2.1.jar"/>
>                <include name="commons-logging-1.0.4.jar"/>
>                <include name="commons-pool-1.3.jar"/>
>                <include name="commons-validator-1.3.1.jar"/>
>                <include name="json.jar"/>
>                <include name="jstl-1.1.0.jar"/>
>                <include name="log4j-1.2.8.jar"/>
>                <include name="myfaces-api-1.1.5.jar"/>
>                <include name="myfaces-impl-1.1.5.jar"/>
>                <include name="NPSConfigDelegate.jar"/>
>                <include name="npsimdelegate.jar"/>
>                <include name="standard.jar"/>
>                <include name="tomahawk-1.1.6.jar"/>
>                </lib>
>                </war>
>
> but it seems the '<exclude name="dojo"/>' has no effect.  The dojo
> directory gets inserted into my WAR.  Any ideas? - Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message