ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Surette <psure...@espial.com>
Subject RE: how to divide build.xml files ?
Date Mon, 11 Mar 2002 14:28:22 GMT
If all you're sharing is properties, a neater way
is to use a properties file and load it in both
build files like this:
<property file="shared.properties/>

Otherwise I think the XML include is the only
way to go. 

-----Original Message-----
From: Baldry, Scot M [mailto:Scot.Baldry@gs.com]
Sent: Monday, March 11, 2002 8:40 AM
To: 'Ant Users List'
Subject: RE: how to divide build.xml files ?


<!DOCTYPE project [
	<!ENTITY IncludeBuildCore SYSTEM "../../../../../buildCore.xml">
	%IncludeBuildCore;
	]>

and then place...

&IncludeBuildCore;

at the relevant point in your buildfile to "in-place" include the contents
of the other buildfile. 

Whilst on the subject does anyone know of a neater way of doing this?

Scot




-----Original Message-----
From: Romain.Rouvoy [mailto:Romain.Rouvoy@lifl.fr]
Sent: 11 March 2002 13:09
To: Ant User Mailing-List
Subject: how to divide build.xml files ?


Hi !

	I want to divide my build.xml file in 2 files because I want to
reuse
some properties and some path I defined. Indeed I have a second one
which needs the declaration of the different variables. So my question
is how can I do ? and how can I include it into my build.xml file ?

Thanks,
Romain

-- 
R. Rouvoy

------------------------------
Romain ROUVOY <rouvoy@lifl.fr>
GOAL Team - LIFL (Laboratoire d'Informatique Fondamentale de Lille)
USTL Lille 1 - France

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

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

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


Mime
View raw message