| Summary: | Not able to use Eclipse ant tasks even though I'm using the antRunner. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Thomas Hallgren <thomas> |
| Component: | Ant | Assignee: | Platform-Ant-Inbox <platform-ant-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | habeck |
| Version: | 3.6.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | stalebug | ||
|
Description
Thomas Hallgren
An update. I found that I only run into problems if I use 'eclipse.convertPath' as a root element. If I move it into a target that I have my other targets depend on, then it works. Not sure why that is or why it works when running from the IDE but not from the command line. (In reply to comment #1) > An update. > > I found that I only run into problems if I use 'eclipse.convertPath' as a root > element. If I move it into a target that I have my other targets depend on, > then it works. Not sure why that is or why it works when running from the IDE > but not from the command line. I ran into a similar problem, and built a test program under Eclipse Indigo. The Eclipse class loader when executed from antRunner on the command line under the Indigo 3.7M3 build is (org.eclipse.equinox.launcher_1.2.0.v20100824b.jar): antTask classloader: org.eclipse.ant.internal.core.AntClassLoader parent classloader: sun.misc.Launcher.AppClassLoader If I run the same antTask under eclipse Galileo's antRunner the following class loaders are in use (org.eclipse.equinox.launcher_1.0.200.v20090520.jar): antTask classloader: org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader parent classloader: org.eclipse.osgi.baseadapter.BaseAdaptor.ParentClassLoader. According to the eclipse documentation, the plug-in class loader is *supposed* to be added as the parent class loader when an ant task contributed by a plug-in has headless=true, and eclipseRuntime=true set in the org.eclipse.ant.core.antTasks extension point. From the test results, it would appear that this is not the case. I can supply the test program if that helps. It is very reproducible. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |