ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <>
Subject Re: small PATCH: ant -find with build.xml in CWD
Date Wed, 18 Jul 2001 19:38:11 GMT
I could be wrong but I think cmanolache (Costin?) is on target that the bug is
in Main rather than Project. If nobody passes a messy File into Project, it
should not create them (hopefully). In this case Main.findBuildFile is simply
creating a non-normal File object (since it is called with "." as the initial
argument). If you fix the original algorithm that produces the bad file paths,
there should be no need to try to normalize anything later on. E.g. try giving
start as System.getProperty("user.dir") rather than ".", or something like

Stefan Bodewig wrote:
> On Tue, 17 Jul 2001, <> wrote:
> > If "ant -find build.xml" is used and build.xml is in the current
> > dir, the returned file will be "/foo/bar/./build.xml", and that
> > might brake a number of <property location="..." /> and other
> > relative paths.
> What you see is a symptom of removing the getCanonicalPath invocations
> everywhere - getCanonicalPath would strip out the /. while
> getAbsolutePath doesn't.  I think we need a different fix (in
> Project.resolveFile) to account for that completely.

Jesse Glick   <>
NetBeans, Open APIs  <>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

View raw message