Package org.apache.uima.pear.tools.InstallationController

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus


    ResourceSpecifier crSpecifier = UIMAFramework.getXMLParser().parseResourceSpecifier(xmlIn);
    CollectionReader cr = UIMAFramework.produceCollectionReader(crSpecifier,
            getResourceManager(this.pkgBrowser), null);

    // create Test status object
    TestStatus status = new TestStatus();

    if (cr != null) {
      status.setRetCode(TestStatus.TEST_SUCCESSFUL);
    } else {
      status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
      status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
              "installation_verification_cr_not_created", new Object[] { this.pkgBrowser
                      .getInstallationDescriptor().getMainComponentId() }, null));
    }

    // reset system properties
View Full Code Here


    CpeDescription cpeDescription = UIMAFramework.getXMLParser().parseCpeDescription(xmlIn);
    CollectionProcessingEngine cpe = UIMAFramework.produceCollectionProcessingEngine(
            cpeDescription, getResourceManager(this.pkgBrowser), null);

    // create Test status object
    TestStatus status = new TestStatus();

    if (cpe != null) {
      status.setRetCode(TestStatus.TEST_SUCCESSFUL);
    } else {
      status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
      status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
              "installation_verification_cpe_not_created", new Object[] { this.pkgBrowser
                      .getInstallationDescriptor().getMainComponentId() }, null));
    }

    // reset system properties
View Full Code Here

    TypePriorities tPriorities = UIMAFramework.getResourceSpecifierFactory().createTypePriorities();
    FsIndexDescription[] fsIndexes = new FsIndexDescription[0];
    CAS cas = CasCreationUtils.createCas(tsDescription, tPriorities, fsIndexes);

    // create Test status object
    TestStatus status = new TestStatus();

    if (cas != null) {
      status.setRetCode(TestStatus.TEST_SUCCESSFUL);
    } else {
      status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
      status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
              "installation_verification_cas_not_created", new Object[] { this.pkgBrowser
                      .getInstallationDescriptor().getMainComponentId() }, null));
    }

    // reset system properties
View Full Code Here

    // run installation verification test

    InstallationTester installTester = new InstallationTester(new PackageBrowser(new File(
            _mainRootDir.getAbsolutePath())));
    TestStatus status = installTester.doTest();
   
    if (status.getRetCode() == TestStatus.TEST_SUCCESSFUL) {
      return true;
    } else {
      System.err.println("[LocalInstallationAgent]: " + "localization test failed =>");
      System.out.println("> Error message: " + status.getMessage());
      return false;
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.pear.tools.InstallationController.TestStatus

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.