Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] AntCorePreferences and URLs


I don't know the specifics of Ant but the leading / on the path part of a file URL is normal Java behavior.  Unfortunately, there are many (roughly) equivalent forms of a file: URL (file:c:/foo, file:/c:/foo and file:///c:/foo are all equivalent from Java's point of view).  Choosing one answer would be great but is proving difficult as everyone has a different opinion as to which is right.

Jeff




"Gunnar Wagenknecht" <G.Wagenknecht@xxxxxxxxxxxx>
Sent by: platform-ant-dev-admin@xxxxxxxxxxx

05/03/2004 02:41 AM

Please respond to
platform-ant-dev

To
<platform-ant-dev@xxxxxxxxxxx>
cc
Subject
[platform-ant-dev] AntCorePreferences and URLs





Hi!

I'm currently investigating a problem when modifying/setting Ant preferences programmatically. I noticed that all paths starts with a slash (example "/C:/mypath…"). Then we create a launch shortcut and launch this one. Ant seems to run fine but during build I noticed that a wrong "rt.jar" was used.

I set the URLs in AntCorePreferences#setAntURLs(URL[]). The URLs are created using a collection of files and invoking java.io.File#toURL on them. Unfortunately this seems to add the slash in front of all paths. Is this now a bug of the Eclipse Ant integration or are these URLs not allowed to be set?

Cu, Gunnar


Back to the top