Package com.instantiations.pde.build.util

Examples of com.instantiations.pde.build.util.Version


    return reader;
  }

  private void assertSharedSubProduct(SubProductZipReader reader, String targetVersion) {
    assertEquals("com.instantiations.eclipse.shared", reader.getId());
    Version fullVersion = new Version(reader.getFullVersion());
    if (fullVersion.compareTo(new Version(5, 5, 0)) < 0)
      fail("Expected version >= 5.5.0, but found " + fullVersion.toStringBase());
    if (fullVersion.getQualifier().compareTo("200901010000") < 0)
      fail("Expected version build number > 200901010000, but found " + fullVersion.getQualifier());
    assertEquals(1, reader.getIncludedFeatures().size());
    if (!reader.getIncludedFeatures().contains("com.instantiations.eclipse.shared"))
      fail("Expected included features to contain com.instantiations.eclipse.shared");
    assertEquals(targetVersion.equals("2.1") ? 6 : 7, reader.getIncludedPlugins().size());
    if (!reader.getIncludedPlugins().contains("com.instantiations.common.help"))
View Full Code Here


{
  @Test
  public void testProcessFile() throws Exception {
    BuildProperties prop = new BuildProperties();
    prop.set("preprocessor.ignore.variables", "none");
    processFiles(new ProductFilePreprocessor(new Version("3.4"), "x.y.z.aaa", prop), new File("testdata/preprocessor/product"));
  }
View Full Code Here

    prop.set("key.2", "another value");
    prop.set("very.log.key", "v3");
    prop.set("preprocessor.ignore.variables", "none");
    TreeSet<Version> versions = new TreeSet<Version>();
    for (String string : versionStrings)
      versions.add(new Version(string));

    for (String projName : names) {
      for (Version eclipseTargetVersion : versions) {
        File projDir = FileUtil.copyFiles(new File(originalDir, projName), new File(tempDir, oemName + "/"
          + eclipseTargetVersion + "/" + projName));
View Full Code Here

TOP

Related Classes of com.instantiations.pde.build.util.Version

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.