Hi Sven, on my project have the same need, ie accessing properties defined in a generalbuild.xml from another build.xml. We do this using scripting: in javascript we create an ant task on generalbuild.xml, trigger the init task, then get a handle on the project object and get back the properties we are interested in. Then we set those properties in the current project object.
I didn't do it myself, but I put my colleague who did it in CC so that he can correct me if I'm not accurate. If I remember he had to modify the Project object. Not sure about this one. P@ [EMAIL PROTECTED] wrote: > I'd like to be able to include/import other ant build files into my build.xml > > For example I am thinking of defining generar properties in a general.xml > and the project specific things in the build.xml file as usual. in build.xml > I'd like to somehow include/import general.xml. > > Maybe it should be XML's job to handle things like this but I am not aware > that > there is any support for this from XML. XSL for example allows this using it's > own xsl:import xsl:include tags. > > One could even go further and include just a part of it by specifiying an > XPATH. > Implementation should be rather easy when using the xpathapi class coming with > xalan. > > any comments ? > > - Sven -- Patrick Chanezon, iPlanet Market Maker- Portal/EServices Technical Lead Netscape Communications Corp. - http://people.netscape.com/chanezon/ Opinions are my own. "C@ in the H@ if you P@ the stomach of a f@ C@, it will look @ you, and say I like th@" Text by Dr. Seuss, Typesetting by Lawrence Steinman
