ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldo, Paul W (Elemental Solutions)" <>
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!


-----Original Message-----
From: Diane Holt []
Sent: Thursday, October 11, 2001 6:28 PM
Subject: Re: Exclude path for Javac task?

--- "Waldo, Paul W (Elemental Solutions)" <> 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/"/>



Do You Yahoo!?
Make a great connection at Yahoo! Personals.

View raw message