move the Java-specific parts into their own method

This commit is contained in:
Ben Fry
2016-08-16 15:36:50 -04:00
parent bb7ed17e6c
commit 27edbf5c85
+6
View File
@@ -114,7 +114,13 @@ public class Library extends LocalContribution {
libraryFolder = new File(folder, "library");
examplesFolder = new File(folder, "examples");
referenceFile = new File(folder, "reference/index.html");
}
/**
* Handles all the Java-specific parsing for library handling.
*/
protected void handle() {
File exportSettings = new File(libraryFolder, "export.txt");
StringDict exportTable = exportSettings.exists() ?
Util.readSettings(exportSettings) : new StringDict();