Package com.google.apphosting.utils.config

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


    if (!webinf.getName().equals("WEB-INF")) {
      throw new AppEngineConfigException("WEB-INF directory must be capitalized.");
    }

    String webinfPath = webinf.getPath();
    AppEngineWebXmlReader aewebReader = new AppEngineWebXmlReader(explodedPath);
    WebXmlReader webXmlReader = new WebXmlReader(explodedPath);
    AppYamlProcessor.convert(webinf, aewebReader.getFilename(), webXmlReader.getFilename());

    validateXml(aewebReader.getFilename(), new File(getSdkDocsDir(), "appengine-web.xsd"));
    appEngineWebXml = aewebReader.readAppEngineWebXml();
    appEngineWebXml.setSourcePrefix(explodedPath);
    if (appId == null) {
      if (appEngineWebXml.getAppId() == null) {
        throw new AppEngineConfigException(
            "No app id supplied and XML files have no <application> element");
View Full Code Here


    if (!f.exists()) {
      return false;
    }

    try {
      AppEngineWebXmlReader reader = new AppEngineWebXmlReader(appDir);
      AppEngineWebXml appEngineWebXml = reader.readAppEngineWebXml();
      return appEngineWebXml.getUseVm();
    } catch (AppEngineConfigException e) {
      System.err.println("Error reading: " + f.getAbsolutePath());
      return false;
    }
View Full Code Here

    context.setDescriptor("config/" + env.env + "/web.xml");
  }

  private void applyAppEngineWebXml(WebAppContext context)
  {
    AppEngineWebXmlReader appWebXmlReader = new AppEngineWebXmlReader(env.dir, "config/" + env.env + "/appengine-web.xml");
    appEngineWebXml = appWebXmlReader.readAppEngineWebXml();
    context.setAttribute("com.google.appengine.tools.development.appEngineWebXml", appEngineWebXml);
    System.getProperties().putAll(this.appEngineWebXml.getSystemProperties());
  }
View Full Code Here

TOP

Related Classes of com.google.apphosting.utils.config.AppEngineWebXmlReader

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.