ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KC Baltz <KBa...@responsenetworks.com>
Subject RE: Build.xml and reuse
Date Thu, 29 Mar 2001 14:30:50 GMT
We do a very similar thing.  We have a build.xml that is standard for
everyone, customized by a properties file, and then we include a local
targets file that people can customize as they like.  

K.C.

> -----Original Message-----
> From: Danil Suits [mailto:DSuits@kana.com]
> Sent: Wednesday, March 28, 2001 2:30 PM
> To: 'ant-user@jakarta.apache.org'
> Subject: Build.xml and reuse
> 
> 
> 
> Has anyone experimented with reusing the targets within the 
> build.xml file?
> 
> I frequently find myself wanting to work on only a subsystem 
> of the project.
> I could add a new target to the build.xml file - but that 
> publishes my local
> work to every developers machine, which isn't appropriate in 
> this case.
> 
> What I'm currently considering is moving the contents of the 
> project to a
> new file (common.xml), replacing them in build.xml with an 
> XML include, then
> creating mybuild.xml which includes common.xml, plus whatever 
> other changes
> I need.  build.xml remains under source control, as does 
> common.xml, but
> mybuild.xml is not under control.
> 
> I'm sure this will work, and I'm also sure that it is kind of 
> clumsy - has
> anybody discovered a better way to achieve target reuse?
> 
> Thanks,
> Danil
> 

Mime
View raw message