ConversionResult result = convertToGss(concatenatedCss, logger);
String gss = result.gss;
String name = "[auto-converted gss files from : " + resources + "]";
sourceCodes.add(new SourceCode(name, gss));
constantNameMappingBuilder.putAll(result.defNameMapping);
} else {
for (URL stylesheet : resources) {
TreeLogger branchLogger = logger.branch(TreeLogger.DEBUG,
"Parsing GSS stylesheet " + stylesheet.toExternalForm());
try {
// TODO : always use UTF-8 to read the file ?
String fileContent =
Resources.asByteSource(stylesheet).asCharSource(Charsets.UTF_8).read();
sourceCodes.add(new SourceCode(stylesheet.getFile(), fileContent));
continue;
} catch (IOException e) {
branchLogger.log(TreeLogger.ERROR, "Unable to parse CSS", e);
}