Search in sources :

Example 6 with VersionsEngine

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"));
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 7 with VersionsEngine

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"));
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 8 with VersionsEngine

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"));
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 9 with VersionsEngine

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"));
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 10 with VersionsEngine

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"));
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Aggregations

VersionsEngine (org.eclipse.tycho.versions.engine.VersionsEngine)25 File (java.io.File)21 IOException (java.io.IOException)3 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)3 ArtifactCoordinates (com.itemis.maven.aether.ArtifactCoordinates)2 ProjectToString (com.itemis.maven.plugins.unleash.util.functions.ProjectToString)2 MavenProject (org.apache.maven.project.MavenProject)2 ProjectMetadataReader (org.eclipse.tycho.versions.engine.ProjectMetadataReader)2 Document (org.w3c.dom.Document)2 RollbackOnError (com.itemis.maven.plugins.cdi.annotations.RollbackOnError)1 ReleasePhase (com.itemis.maven.plugins.unleash.ReleasePhase)1 IllegalVersionChangeException (org.eclipse.tycho.versions.engine.IllegalVersionChangeException)1