Hi guys,
The alteration we need to make is not to the project classpath but to the classpath of the test launcher. At the moment the tests are launched with a classpath which includes "target/classes” which breaks compatibility with the ADT. We need to modify this value so it is “bin/classes” which is the hard-coded default where the ADT compiles Java.
Which API do we need to call to update this value? It looks as though its currently being read from MavenProject.getBuild().getOutputLocation().
Should we call MavenProject.getBuild().setOutputLocation()?
Should we modify the paths output by a subclass of the IRuntimeClasspathProvider?[1]
Or should we use a classifierClasspathProvider as Igor suggests? If so, what call exactly should we make to this API?
[1] This solution presents problems for us, as we have to modify and maintain the output location in multiple locations, modifying in one place would be preferable and less error-prone.
TIA…
Can't you use a project configurator instead that adds the folder you want to the classpath, in the order you want?
This is a bit similar to how we handle the Endorsed Libraries container, that needs to come before both the JRE and Maven libraries [1].
_______________________________________________ m2e-dev mailing list m2e-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-dev
|