--- "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
|