Search in sources :

Example 16 with VersionsEngine

use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.

the class VersionsEngineTest method testUpdateVersionRanges.

public void testUpdateVersionRanges() throws Exception {
    File basedir = TestUtil.getBasedir("projects/versionranges");
    VersionsEngine engine = newEngine(basedir);
    engine.addVersionChange("parent", "1.0.1.qualifier");
    engine.setUpdateVersionRangeMatchingBounds(true);
    engine.apply();
    assertBundleManifest(new File(basedir, "bundle1"));
    assertBundleManifest(new File(basedir, "bundle2"));
    assertBundleManifest(new File(basedir, "bundle3"));
    assertBundleManifest(new File(basedir, "fragment"));
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 17 with VersionsEngine

use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.

the class VersionsEngineTest method testPomProperties.

public void testPomProperties() throws Exception {
    File basedir = TestUtil.getBasedir("projects/pomproperties");
    VersionsEngine engine = newEngine(basedir);
    engine.addPropertyChange("pomproperties", "p1", "changed");
    engine.apply();
    assertPom(basedir);
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 18 with VersionsEngine

use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.

the class VersionsEngineTest method testNonOsgiVersionNonOsgiProject.

public void testNonOsgiVersionNonOsgiProject() throws Exception {
    File basedir = TestUtil.getBasedir("projects/nonosgiversion/maven");
    VersionsEngine engine = newEngine(basedir);
    engine.addVersionChange("maven", "1.0.1-01");
    engine.apply();
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 19 with VersionsEngine

use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.

the class VersionsEngineTest method testSimple.

public void testSimple() throws Exception {
    File basedir = TestUtil.getBasedir("projects/simple");
    VersionsEngine engine = newEngine(basedir);
    engine.addVersionChange("simple", "1.0.1.qualifier");
    engine.apply();
    assertPom(basedir);
    assertBundleManifest(basedir);
}
Also used : VersionsEngine(org.eclipse.tycho.versions.engine.VersionsEngine) File(java.io.File)

Example 20 with VersionsEngine

use of org.eclipse.tycho.versions.engine.VersionsEngine in project tycho by eclipse.

the class VersionsEngineTest method testDependencyOtherVersion.

public void testDependencyOtherVersion() throws Exception {
    File basedir = TestUtil.getBasedir("projects/dependencyotherversion");
    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)

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