Examples of EarInfo


Examples of com.google.apphosting.utils.config.EarInfo

  private Iterable<Application> readApplication() throws IOException {
    ImmutableList.Builder<Application> resultBuilder = ImmutableList.builder();
    if (applicationDirectory != null) {
      if (EarHelper.isEar(applicationDirectory, false)) {
        EarInfo earInfo = EarHelper.readEarInfo(applicationDirectory,
             new File(Application.getSdkDocsDir(), "appengine-application.xsd"));
        String applicationId = overrideAppId != null ?
            overrideAppId : earInfo.getAppengineApplicationXml().getApplicationId();
        for (WebModule webModule : earInfo.getWebModules()) {
          System.out.println("Processing module " + webModule.getModuleName());
          resultBuilder.add(readWar(webModule.getApplicationDirectory().getAbsolutePath(),
              applicationId, null));
          String contextRootWarning =
              "Ignoring application.xml context-root element, for details see "
View Full Code Here

Examples of com.google.apphosting.utils.config.EarInfo

    this.configurationRoot  = configurationRoot;
    this.systemPropertiesManager = new SystemPropertiesManager();
    this.sdkRelease = sdkRelease;
    this.applicationSchemaFile = applicationSchemaFile;
    if (EarHelper.isEar(configurationRoot.getAbsolutePath())) {
      EarInfo earInfo = readEarConfiguration();
      ImmutableList.Builder<ModuleConfigurationHandle> builder = ImmutableList.builder();
      for (WebModule module : earInfo.getWebModules()) {
        builder.add(new EarModuleConfigurationHandle(module));
      }
      moduleConfigurationHandles = builder.build();
    } else {
      ModuleConfigurationHandle warConfigurationHandle = new WarModuleConfigurationHandle(
View Full Code Here

Examples of com.google.apphosting.utils.config.EarInfo

      String message = String.format("Unsupported update from EAR to WAR for: %s",
          configurationRoot.getAbsolutePath());
      LOGGER.severe(message);
      throw new AppEngineConfigException(message);
    }
    EarInfo earInfo = EarHelper.readEarInfo(configurationRoot.getAbsolutePath(),
        applicationSchemaFile);
    String majorVersionId = null;
    String urlStreamHandlerType = null;
    LoggingConfigurationManager loggingConfigurationManager = new LoggingConfigurationManager();
    for (WebModule module : earInfo.getWebModules()) {
      module.getWebXml().validate();
      AppEngineWebXml appEngineWebXml = module.getAppEngineWebXml();
      if (majorVersionId == null) {
        majorVersionId = appEngineWebXml.getMajorVersionId();
        urlStreamHandlerType = appEngineWebXml.getUrlStreamHandlerType();
      }
      validateAndRegisterGlobalValues(module, loggingConfigurationManager, null);
    }
    systemPropertiesManager.setAppengineSystemProperties(sdkRelease,
        earInfo.getAppengineApplicationXml().getApplicationId(), majorVersionId);
    loggingConfigurationManager.updateLoggingConfiguration();
    updateUrlStreamHandlerMode(urlStreamHandlerType);
    return earInfo;
  }
View Full Code Here

Examples of com.google.apphosting.utils.config.EarInfo

    }

    @Override
    public void readConfiguration() {
      synchronized (ApplicationConfigurationManager.this) {
        EarInfo earInfo = readEarConfiguration();
        checkDynamicUpdateAllowed(earInfo);
        for (WebModule module : earInfo.getWebModules()) {
          if (module.getApplicationDirectory().equals(webModule.getApplicationDirectory())) {
            webModule = module;
            return;
          }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.