ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McConnell <mcconn...@apache.org>
Subject Re: Question about Basedir
Date Tue, 22 Jun 2004 09:24:16 GMT
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.

-- 

|---------------------------------------|
| Magic by Merlin                       |
| Production by Avalon                  |
|                                       |
| http://avalon.apache.org              |
|---------------------------------------|

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


Mime
View raw message