try {
tempGroup = newAuraJavascriptGroup();
try {
tempGroup.parse();
} catch (IOException x) {
throw new AuraError("Unable to initialize aura client javascript", x);
}
tempGroup.postProcess();
} catch (IOException x) {
/*
* js source wasn't found, we must be in jar land, just let the files be accessed from there... however, we
* do want a hash. Question: hypothetically, could we have a hybrid with a subset of files as files, and the
* rest in jars? This wouldn't be accounted for here.
*/
tempGroup = new CompiledGroup(AuraJavascriptGroup.GROUP_NAME, AuraJavascriptGroup.FILE_NAME);
}
jsGroup = tempGroup;
// Aura Resources
FileGroup tempResourcesGroup;
try {
tempResourcesGroup = newAuraResourcesHashingGroup();
tempResourcesGroup.getGroupHash();
} catch (IOException e) {
tempResourcesGroup = new CompiledGroup(AuraResourcesHashingGroup.GROUP_NAME,
AuraResourcesHashingGroup.FILE_NAME);
}
resourcesGroup = tempResourcesGroup;
Properties props = (jsGroup == null) ? loadProperties() : null;
if (props == null) {
// If we don't get the framework version from properties, the default is a development build:
auraVersionString = "development";
buildTimestamp = System.currentTimeMillis();
} else {
// If we do get our version info from properties, then try to do that.
auraVersionString = props.getProperty(VERSION_PROPERTY);
if (auraVersionString == null || auraVersionString.isEmpty()) {
throw new AuraError("Unable to read build version from version.prop file");
}
buildTimestamp = readBuildTimestamp(props);
}