Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to use "Add Folders" with Ant Launcher?
How to use "Add Folders" with Ant Launcher? [message #257874] Mon, 22 December 2008 11:10
Eclipse UserFriend
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
Previous Topic:Different Compiler Preferences for different Source folder
Next Topic:Memory dump
Goto Forum:
  


Current Time: Mon Apr 28 11:21:48 EDT 2025

Powered by FUDForum. Page generated in 0.03461 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top