ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wannheden, Knut" <knut.wannhe...@paranor.ch>
Subject RE: project basedir
Date Thu, 20 Feb 2003 10:16:37 GMT
I suppose you know that a relative path can be specified as the value of the
basedir property.  In that case it is resolved by using the buildfile's
location as the basedir.  Then you locate the buildfile with your project.
Or do you use the same buildfile for multiple projects?

--
knut

> -----Original Message-----
> From: Matthew Oatham [mailto:matthewoatham@hotmail.com]
> Sent: Donnerstag, 20. Februar 2003 11:15
> To: user@ant.apache.org
> Subject: project basedir
> 
> 
> Hi,
> 
> I need my project to be able to take different basedir values i.e.
> 
> <project ... basedir="c:\code">
> <project ... basedir="c:\development">
> 
> depending on a users setup. Therefore I thought I would 
> specify basedir in a properties file that coould be changed 
> by users depending on there set-up. 
> 
> i.e 
> 
> <project ... basedir="${someProperty}">
> 
> someProperty=c:\code
> 
> However this didn't work so I tried, as suggested by others, 
> removing the basedir attribute and putting it in a properties 
> file i.e.
> 
> <project ...>
> 
> basedir=c:\code
> 
> Again this still didn't pick up the basedir.
> 
> Has anyone managed to do this?
> 
> Regards.
> 
> Matt.
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message