use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testTargetPlatform.
public void testTargetPlatform() throws Exception {
File basedir = TestUtil.getBasedir("projects/targetplatform");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("parent", "0.2.0.qualifier");
engine.apply();
assertPom(basedir);
assertPom(new File(basedir, "bundle01"));
assertBundleManifest(new File(basedir, "bundle01"));
assertPom(new File(basedir, "targetplatform"));
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testMultimodule.
public void testMultimodule() throws Exception {
File basedir = TestUtil.getBasedir("projects/multimodule");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("parent", "1.0.1.qualifier");
engine.apply();
assertPom(basedir);
assertPom(new File(basedir, "bundle"));
assertBundleManifest(new File(basedir, "bundle"));
assertPom(new File(basedir, "feature01"));
assertFeatureXml(new File(basedir, "feature01"));
assertPom(new File(basedir, "feature02"));
assertFeatureXml(new File(basedir, "feature02"));
assertPom(new File(basedir, "feature03"));
assertFeatureXml(new File(basedir, "feature03"));
assertPom(new File(basedir, "site"));
assertSiteXml(new File(basedir, "site"));
assertPom(new File(basedir, "product"));
assertProductFile(new File(basedir, "product"), "product.product");
assertPom(new File(basedir, "repository"));
assertCategoryXml(new File(basedir, "repository"));
assertProductFile(new File(basedir, "repository"), "product.product");
assertProductFile(new File(basedir, "repository"), "differentversion.product");
assertPom(new File(basedir, "repository-product-only"));
assertProductFile(new File(basedir, "repository-product-only"), "product2.product");
assertPom(new File(basedir, "iu"));
assertP2IuXml(new File(basedir, "iu"));
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testDeepNestingInverseOrder.
public void testDeepNestingInverseOrder() throws Exception {
File basedir = TestUtil.getBasedir("projects/deepnesting");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("child", "1.0.1.qualifier");
engine.addVersionChange("parent", "1.0.1.qualifier");
engine.apply();
assertPom(basedir);
assertPom(new File(basedir, "child"));
assertPom(new File(basedir, "child/grandchild"));
assertPom(new File(basedir, "child/grandchild/bundle"));
assertBundleManifest(new File(basedir, "child/grandchild/bundle"));
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testDependencyManagmentSimple.
public void testDependencyManagmentSimple() throws Exception {
File basedir = TestUtil.getBasedir("projects/dependencymanagementsimple");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("someproject", "1.0.1.qualifier");
engine.apply();
assertPom(basedir);
assertPom(new File(basedir, "bundle"));
assertBundleManifest(new File(basedir, "bundle"));
assertPom(new File(basedir, "someproject"));
}
use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.
the class VersionsEngineTest method testDeepNesting.
public void testDeepNesting() throws Exception {
File basedir = TestUtil.getBasedir("projects/deepnesting");
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange("parent", "1.0.1.qualifier");
engine.apply();
assertPom(basedir);
assertPom(new File(basedir, "child"));
assertPom(new File(basedir, "child/grandchild"));
assertPom(new File(basedir, "child/grandchild/bundle"));
assertBundleManifest(new File(basedir, "child/grandchild/bundle"));
}
Aggregations