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

Title: AntCorePreferences and URLs
ï
We did have a similar problem with the Eclipse integration.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=51307
 
Hard to tell if this is the bug when you did not indicate which build of Eclipse you are using :-)
 
HTH
Darins
----- Original Message -----
Sent: Sunday, May 02, 2004 10:41 PM
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