Community
Participate
Working Groups
My workspace contains a project which was deleted from the disk. Attempting to launch a self hosted workspace resulted in the following NPE: java.lang.NullPointerException at org.eclipse.pde.internal.core.ClasspathHelper.getDevPaths(ClasspathHelper.java:259) at org.eclipse.pde.internal.core.ClasspathHelper.getDevEntriesProperties(ClasspathHelper.java:92) at org.eclipse.pde.launching.EclipseApplicationLaunchConfiguration.getProgramArguments(EclipseApplicationLaunchConfiguration.java:113) at org.eclipse.pde.launching.AbstractPDELaunchConfiguration.launch(AbstractPDELaunchConfiguration.java:72) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Refreshing the project to pick up the changes on disk made the NPE go away.
Created attachment 194818 [details] Patch Curtis, plz review for RC1
+1 for RC1. Patch applied to HEAD.
This change breaks dev.properties generation. Projects contributing ant tasks incorrectly get their bin_ant class files on the dev time classpath leading to ClassDefNotFound errors using ant tasks at runtime which are extremely hard to debug. In my case, > file.getFullPath().toFile().exists(); file = "L/org.eclipse.equinox.p2.director.app/build.properties" file.getFullPath() = "/org.eclipse.equinox.p2.director.app/build.properties" This path is relative to the workspace root, but calling toFile on it yields a file with absolute path that does not exist on disk. The result is that searchBuild is false, and all the output folders are placed on the dev path, which is incorrect for contributed ant tasks.
Created attachment 195416 [details] patch
Andrew's fix looks correct to me. Mike, can you please see if the updated fix solves your ant issues?
+1 for the updated patch. Debugging through launching with API Tools demonstrates the problem with the previous patch.
whole-hearted +1, it resolves my Ant and API Tools test failures locally.
Fixed in HEAD.