ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <wascallywab...@earthling.net>
Subject Re: Question about Basedir
Date Tue, 22 Jun 2004 14:46:14 GMT
At 05:24 AM 6/22/2004, you wrote:
>Christian Cryder wrote:
>
>>(EventBuilder is a custom taskdef which internally creates a dir by
>>doing something like this:
>>     String targetPackage = cs.eventPackage.replace('.','/');
>>     File targetPath = new File(sourceOutDir+"/"+targetPackage);
>
>Instead of the above line you could try the following:
>
>    File basedir = getProject().getBaseDir();
>    File targetPath = new File( basedir, targetPackage );
>
>Steve.


Or just:
     File targetPath = getProject().resolveFile(targetPackage);



The Wabbit 



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


Mime
View raw message