ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: Path, refid, <src>
Date Sat, 27 Apr 2002 03:31:40 GMT
Here's a simple example:


file1 is copy/filtered to


I want to compile from output/gen-src and from
src/main.  As far as includes/excludes go, the 2 copies of are
indistinguishable, so if it was to work, the includes/excludes would have
to go in the src or fileset element, not outside the src elements:

<src dir="src/main">
  <excludes file="org/davesejbs/">
<src dir="output/gen-src"/>

conceptually works, but 

<src dir="src/main"/>
<src dir="output/gen-src/>
<excludes ???????? /> 

doesn't work.  I can't pick which copy of I want.

Incidently, perhaps someone has an idea for how to avoid the whole mess in
the first place.  I have some wrapper classes that implement jdbc
interfaces that have to compile under both jdk 1.3 and 1.4 : the jdk1.4
specific methods have to delegate them to the same methods on the wrapped
classes.  I came up with the idea of using the copy with filter task to
replace tokens into the appropriate comment ends depending on which jdk is
present -- kind of a primitive #ifdef preprocessor.  I'd sure appreciate
knowing of some other alternatives.

david jencks

On 2002.04.26 23:09:05 -0400 Diane Holt wrote:
> --- David Jencks <> wrote:
> > I can't say I understand the reasons behind refusing to have
> > includes/excludes inside a fileset in a src tag for javac, but I would
> > find it extremely useful.
> It's not that it's "refused" -- it's that it's not necessary. You're
> already "in a FileSet", in a manner of speaking. Whatever
> included/excluded files you want to point to, just specify them. I can
> see
> there's some confusion, but what I can't see is what it is you want to do
> that you can't already do.
> Diane
> =====
> (
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message