ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Dyke <will.d...@bbc.co.uk>
Subject RE: Exclude path for Javac task?
Date Mon, 15 Oct 2001 16:17:07 GMT
The answer to your question is apparent
from your original posting

<exclude refid="lo.exclude.files"/>

No $ or {}

Will


> -----Original Message-----
> From: Waldo, Paul W (Elemental Solutions)
> [mailto:paul.waldo-eds@eds.com]
> Sent: 15 October 2001 17:08
> To: 'ant-user@jakarta.apache.org'
> Subject: RE: Exclude path for Javac task?
> 
> 
> Thanks for the reply, Diane.  Now that I've switched to 
> patternset, how do I
> actually reference that for the javac task?  I've tried the following:
>             <exclude name="${lo.exclude.files}"/>
>             <exclude refid="${lo.exclude.files}"/>
> The first has no effect, and the second causes a syntax 
> error.  I can't seem
> to find a comprehensive list of attributes in the docs.  Thanks!
> 
> Paul
> 
> -----Original Message-----
> From: Diane Holt [mailto:holtdl@yahoo.com]
> Sent: Thursday, October 11, 2001 6:28 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: Exclude path for Javac task?
> 
> 
> --- "Waldo, Paul W (Elemental Solutions)" 
> <paul.waldo-eds@eds.com> wrote:
> > I've got a path defined for files to exclude from a java 
> compile, but I
> > can't seem to get the syntax right:
> > 
> >     <path id="common.exclude.files">
> >         <pathelement location="common/test/PIN/"/>
> >         <pathelement location="common/tests/"/>
> >     </path>
> >     <target name="build.common" depends="init, depend">
> >         <javac  destdir="${build}" classpathref="jars">
> >             <src refid="common.source.dirs"/>
> >             <include name="common/**"/>
> >             <exclude refid="common.exclude.files"/>
> >         </javac>
> >     </target>
> > 
> > Is this doable?  Thanks so much for any pointers!
> 
> Try <patternset> not <path>:
> 
> <patternset id="common.exclude.files">
>   <include name="common/test/PIN/"/>
>   <include name="common/tests/"/>
> </patternset>
> 
> Diane
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 


This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.

Mime
View raw message