Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,23 @@ public boolean accept(File dir, String name) {
} catch (IOException ignored) {
// we simply show no entries here
}

// show every entry class that can be loaded later on.
PackagedProgram program;
for (String clazz : classes) {
clazz = clazz.trim();

PackagedProgram program = null;
try {
program = new PackagedProgram(f, clazz, new String[0]);
} catch (Exception ignored) {
// ignore jar files which throw an error upon creating a PackagedProgram
}
if (program != null) {
gen.writeStartObject();
gen.writeStringField("name", clazz);
String desc = program.getDescription();
gen.writeStringField("description", desc == null ? "No description provided" : desc);
gen.writeEndObject();
} catch (ProgramInvocationException e) {
//
}
}
gen.writeEndArray();
Expand Down