ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <cmanola...@yahoo.com>
Subject Re: Improt task and project basedir
Date Wed, 08 Jan 2003 15:18:06 GMT
Conor MacNeill wrote:

> Costin Manolache wrote:
>> 
>> No, the basedir was lost during the refactoring, it used to be
>> extracted from the sax context.
>> 
>> Since Import is a task - the easiest is to change to
>> setFile( File ). I can't work on this right now - I'll try tommorow.
>> 
> 
> Consider then
> 
> project1 ---> import project2 ---> import project3
> 
> Project2 will specify project3 relative to its basedir. The above approach
> will, I think, load the project relative to project1's basedir which would
> be wrong.
> 
> It must be in the context, I think.

You're right - setFile(File) won't work. It needs the base dir of 
the "current" project. It needs to be in a stack ( i.e. part of the
abstraction in ProjectHelper ). 

Costin


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message