use of org.eclipse.tycho.core.osgitools.project.EclipsePluginProjectImpl in project tycho by eclipse.
the class OsgiBundleProject method getEclipsePluginProject.
public EclipsePluginProjectImpl getEclipsePluginProject(ReactorProject otherProject) {
EclipsePluginProjectImpl pdeProject = (EclipsePluginProjectImpl) otherProject.getContextValue(TychoConstants.CTX_ECLIPSE_PLUGIN_PROJECT);
if (pdeProject == null) {
try {
pdeProject = new EclipsePluginProjectImpl(otherProject, buildPropertiesParser);
otherProject.setContextValue(TychoConstants.CTX_ECLIPSE_PLUGIN_PROJECT, pdeProject);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return pdeProject;
}
use of org.eclipse.tycho.core.osgitools.project.EclipsePluginProjectImpl in project tycho by eclipse.
the class OsgiBundleProject method addPDESourceRoots.
private void addPDESourceRoots(MavenProject project) {
EclipsePluginProjectImpl eclipsePluginProject = getEclipsePluginProject(DefaultReactorProject.adapt(project));
for (BuildOutputJar outputJar : eclipsePluginProject.getOutputJars()) {
for (File sourceFolder : outputJar.getSourceFolders()) {
removeDuplicateTestCompileRoot(sourceFolder, project.getTestCompileSourceRoots());
project.addCompileSourceRoot(sourceFolder.getAbsolutePath());
}
}
}
Aggregations