How to use "Add Folders" with Ant Launcher? [message #257874] |
Mon, 22 December 2008 11:10 |
Eclipse User |
|
|
|
I think I'm misunderstanding something. I'm using Eclipse 3.4.1.
I'm trying to add a folder to the runtime classpath of an Ant launch. The
folder contains compiled classes for use by a custom Ant task. I took the
"Add Folders" option on the Ant launcher's classpath tab and selected the
folder to add. But, the classes in that folder cannot be found.
I dug into this and found that in
org.eclipse.jdt.internal.debug.ui.actions.AddFolderAction, Eclipse is
adding the folder using JavaRuntime.newArchiveRuntimeClasspathEntry. But
this is a folder, NOT an archive.
Actually, this would even work if Eclipse would append a training "/" to
the folder path - because URLClassLoader would then properly interpret
this as a class folder, rather than an Archive (I verified that this works
in debug).
So, finally, my question. Is this a bug, or am I seriously
misunderstanding what "Add Folders" is supposed to do?
Thanks!
Jeff Butler
|
|
|
Powered by
FUDForum. Page generated in 0.03461 seconds