ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: Inheriting patternset refid
Date Sat, 03 Dec 2005 16:33:32 GMT
> 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.

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:
For additional commands, e-mail:

View raw message