> > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
