external entity for build-share
2 posts in topic
Flat View  Flat View

Posted By:   Cheng_Fang
Posted On:   Thursday, August 30, 2001 06:29 AM

I have a build.xml in each directory in the source tree, because I'd like to build from any directory. I put the xml content common to all build files in build-share.xml. If I put build-share.xml in project root, how can each build.xml in the tree access it?


<!ENTITY includebuildshare SYSTEM "build-share.xml">


It will work only if I have a copy of build-share in each directory. I dont' think entity declaration will allow you to specify path via ant property. Any suggestions? thanks.

Re: external entity for build-share

Posted By:   John_Arrizza  
Posted On:   Sunday, September 2, 2001 09:21 PM

This worked for me:



The twist to it is that ant.global.properties must have the format specified in java.util.properties (see load()). That is:

build.compiler =jikes

build.compiler.pedantic =true

build.compiler.emacs =true

Is this what you were looking for?

Re: external entity for build-share

Posted By:   Erik_Hatcher  
Posted On:   Thursday, August 30, 2001 09:24 AM

You could try using the or tasks rather than an entity reference.

No you won't be able to put an Ant property in an entity declaration since that is interpretted at the XML parser, not via Ant.

Or you could probably put the common XML file accessible via a URL (I believe an entity reference will find it then, but that is an absolute reference, not a relative one).

About | Sitemap | Contact