// Ensure file exists
addonImports.createNewFile();
}
LocationInfo info = ClassPathExplorer
.getAvailableWidgetSetsAndStylesheets();
try {
PrintStream printStream = new PrintStream(new FileOutputStream(
addonImports));
printStream.println("/* " + ADDON_IMPORTS_FILE_TEXT + " */");
printStream.println("/* Do not manually edit this file. */");
printStream.println();
Map<String, URL> addonThemes = info.getAddonStyles();
// Sort addon styles so that CSS imports are first and SCSS import
// last
List<String> paths = new ArrayList<String>(addonThemes.keySet());
Collections.sort(paths, new Comparator<String>() {