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

Title: AntCorePreferences and URLs

2.1.3
 
Our plugin modifies the AntCorePreferences to take the Ant from our J2EE server directory. Is seems like I'm getting both issues.
 
The workaround for me is to not use the java.io.File#toURL but to manually compute the URL ("file:" + java.io.File#getAbsolutePath).
 
Cu, Gunnar
 


From: platform-ant-dev-admin@xxxxxxxxxxx [mailto:platform-ant-dev-admin@xxxxxxxxxxx] On Behalf Of Darin Swanson
Sent: Monday, May 03, 2004 6:28 PM
To: platform-ant-dev@xxxxxxxxxxx
Subject: Re: [platform-ant-dev] AntCorePreferences and URLs

We did have a similar problem with the Eclipse integration.
 
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



Back to the top