You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matthew Oatham <ma...@hotmail.com> on 2003/02/20 11:14:30 UTC

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.