https://issues.apache.org/bugzilla/show_bug.cgi?id=52343
Bug #: 52343
Summary: basedir attr. doc. doesn't say how/if given relative
path resolved
Product: Ant
Version: 1.8.2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Documentation
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
The documentation of the basedir attribute (in the Projects section of the Ant
manual page manual/using.html) does not specify how (or if) the pathname given
as the attribute's value is resolved if it is a relative pathname.
The text does not specify enough to answer the questions:
- Does basedir="." refer to the current working directory?
- Does basedir="." refer to the build file's containing directory?
- Given basedir=".", will a reference to "${basedir}" in a simple string
(e.g., in <echo message="..."/> vs. in <property location="...">) yield
"." (the originally given string) or a resolved pathname? (That is, is
the resulting value of the basedir property the given, possibly relative
pathname string or some resolved, absolute pathname?)
It seems to not specify enough to answer this:
- Given basedir="..", will
<property ... location="${basedir}/x" /> and
<property ... location="x" />
yield the same resolved pathname, or does the former refer to the parent
directory of the latter? (Is it that ${basedir} first gets replaced
with "..", yielding location="../x", and then "../x" gets resolved against
the base directory? Or does something else happen?)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.