ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
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.

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


Mime
View raw message