One idea:  The ant.file property points to the build.xml, you can grab this
do your stuff relative to antFile.getParentFile().  Since your task has a
reference to the project object, you can query the properties from that
directly.

Paul

> -----Original Message-----
> From: Mark Derricutt [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 11:35 PM
> To: 'Ant Users List'
> Subject: Custom tasks/project directory
> 
> 
> I have a custom task, that takes a filename passed as an 
> attribute (no path 
> specified), in the code I create a Properties object based on this 
> filename.  The file is in the same directory as my build.xml, 
> and when 
> running from that directory all is fine.
> 
> However, when the other guy in the office ran the build from 
> his IDE, it 
> wouldn't find the file, is there a way to find the 
> build.xml's path to 
> pickup the correct file?
> 
>                                     -- \m/ --
>   "...if I seem super human I have been misunderstood." (c) 
> Dream Theater
>          [EMAIL PROTECTED] - ICQ: 1934853 JID: [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to