ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45739] Problems with BaseDir when the ant is started as Java library from Java Application
Date Fri, 05 Sep 2008 06:25:04 GMT

--- Comment #2 from Stefan Bodewig <>  2008-09-04 23:25:03 PST ---
There are two different places where basedirs might get resolved.  One is in
Project#setBaseDir which may be invoked with "." if Project#getBasedir is
before the Project instance knows its basename.  This would resolve relative
to the current working directory and not the location of the build file.

The other place is ProjectHelper2#onStartElement which is invoked while the
file gets parsed, this will resolve relative to the location of the build file.

My guess is that something in your code invokes project.getBasedir() before the
project's build file has been parsed.  The most common reason for this is a
BuildListener invoking getBaseDir in the buildStarted event which is fired
before the build file gets parsed.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message