ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldo, Paul W (Elemental Solutions)" <paul.waldo-...@eds.com>
Subject RE: Exclude path for Javac task?
Date Mon, 15 Oct 2001 16:07:30 GMT
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

Mime
View raw message