ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject AW: Project Basedir
Date Thu, 25 Sep 2003 11:00:46 GMT
I would rather use the ant task with the dir attribute. This allows you to
hit an arbitrary target within your buildfile with a new basedir. If you
change the basedir with script, it might not trigger a recalculation of all
properties depending on the basedir.

Cheers,
Antoine

-----Ursprüngliche Nachricht-----
Von: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Gesendet: Donnerstag, 25. September 2003 12:20
An: user@ant.apache.org
Betreff: RE: Project Basedir


????? Why - it´s very dangerous!


Maybe via script task:

    <script language="javascript"> <![CDATA[
        importClass(java.io.File);
        project.setBaseDir(new File("myNewBaseDir"));
    ]]>
    </script>



Jan


> -----Original Message-----
> From: Blanchet Samuel [mailto:sblanchet@sopragroup.com]
> Sent: Thursday, September 25, 2003 12:17 PM
> To: Ant Users List
> Subject: RE: Project Basedir
>
>
> I would like to change the basedir in the middle of my script...
>
> How could I do that ??
>
>
>  Sam
>
>
>


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


Mime
View raw message