You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Brown, Carlton" <Ca...@BellSouth.com> on 2005/12/03 04:43:48 UTC
Inheriting patternset refid
Is it possible to declare a patternset with a reference id in a build
file, and be able to dereference that id in another build file called by
the <ant> task? There's a patternset that I keep using over and over
in my build files, and it would be nice if there were a way to specify
it once and be able to dereference it in other build files.
I've tried this a few ways, even explicitly forcing inheritAll to "true"
even though it defaults to that, but it doesn't seem to work.
If I could do this, it would simplify life greatly.
Thanks in advance.
Re: Inheriting patternset refid
Posted by Dominique Devienne <dd...@gmail.com>.
> Is it possible to declare a patternset with a reference id in a build
> file, and be able to dereference that id in another build file called by
> the <ant> task? There's a patternset that I keep using over and over
> in my build files, and it would be nice if there were a way to specify
> it once and be able to dereference it in other build files.
Sure.
> I've tried this a few ways, even explicitly forcing inheritAll to "true"
> even though it defaults to that, but it doesn't seem to work.
inheritAll is for properties only, not references.
use inheritRefs or a nested <reference>.
You could also consider putting common definitions into a build file,
for example common.xml, and <import> it into your various builds. --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org