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");
}
} else {
appEngineWebXml.setAppId(appId);
}
if (module != null) {
appEngineWebXml.setModule(module);
}
if (appVersion != null) {
appEngineWebXml.setMajorVersionId(appVersion);
}
webXml = webXmlReader.readWebXml();
webXml.validate();
CronXmlReader cronReader = new CronXmlReader(explodedPath);
validateXml(cronReader.getFilename(), new File(getSdkDocsDir(), "cron.xsd"));
cronXml = cronReader.readCronXml();