ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brown, Carlton" <Carlton.Br...@BellSouth.com>
Subject RE: Inheriting patternset refid
Date Mon, 05 Dec 2005 01:41:19 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

Thanks Dominique, this was just the ticket.  You rock.  I refactored a
12,000 line build down to just over 1,200 using these techniques.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message