use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testPomDependencyNoVersion.
public void testPomDependencyNoVersion() throws Exception {
File basedir = TestUtil.getBasedir("projects/dependencynoversion");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("testmodule", "4.8");
engine.apply();
assertPom(new File(basedir, "module"));
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method newEngine.
private VersionsEngine newEngine(File basedir) throws Exception {
VersionsEngine engine = lookup(VersionsEngine.class);
ProjectMetadataReader reader = lookup(ProjectMetadataReader.class);
reader.addBasedir(basedir);
engine.setProjects(reader.getProjects());
return engine;
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testProfile.
public void testProfile() throws Exception {
File basedir = TestUtil.getBasedir("projects/profile");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("parent", "1.0.1.qualifier");
engine.apply();
assertPom(basedir);
assertPom(new File(basedir, "bundle01"));
assertBundleManifest(new File(basedir, "bundle01"));
assertPom(new File(basedir, "bundle02"));
assertBundleManifest(new File(basedir, "bundle02"));
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testExportPackage.
public void testExportPackage() throws Exception {
File basedir = TestUtil.getBasedir("projects/exportpackage");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("exportpackage", "1.0.1.qualifier");
engine.apply();
assertPom(basedir);
assertBundleManifest(basedir);
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testBuildPluginManagement.
public void testBuildPluginManagement() throws Exception {
File basedir = TestUtil.getBasedir("projects/pluginmanagement");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("parent", "1.0.1.qualifier");
engine.apply();
assertPom(basedir);
assertPom(new File(basedir, "plugin"));
assertPom(new File(basedir, "jar"));
}
Aggregations