ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Exclude path for Javac task?
Date Thu, 11 Oct 2001 22:27:46 GMT
--- "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