use of net.jangaroo.exml.as.ConfigClassBuilder in project jangaroo-tools by CoreMedia.
the class ConfigClassBuilderTest method buildConfigClass.
private ConfigClass buildConfigClass(String resourceName, String module) throws URISyntaxException {
File sourceFile = new File(getClass().getResource("/" + module + "/" + resourceName).toURI());
InputSource inputSource = new FileInputSource(sourceFile, true);
CompilationUnit compilationUnit = new Jooc().doParse(inputSource, new StdOutCompileLog(), SemicolonInsertionMode.QUIRKS);
ConfigClassBuilder configClassBuilder = new ConfigClassBuilder(compilationUnit);
return configClassBuilder.buildConfigClass();
}
Aggregations