Added "license" field in libraries.

This commit is contained in:
Cristian Maglie 2013-12-25 19:27:09 +01:00
parent ce5ff8c299
commit 164da522b6
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ public class Library {
private String paragraph;
private String url;
private String category;
private String license;
private List<String> architectures;
private File folder;
private File srcFolder;
@ -125,6 +126,10 @@ public class Library {
if (!CATEGORIES.contains(category))
category = "Uncategorized";
String license = properties.get("license");
if (license == null)
license = "Unspecified";
Library res = new Library();
res.folder = libFolder;
res.srcFolder = srcFolder;
@ -136,6 +141,7 @@ public class Library {
res.paragraph = properties.get("paragraph").trim();
res.url = properties.get("url").trim();
res.category = category.trim();
res.license = license.trim();
res.architectures = archs;
res.useRecursion = useRecursion;
res.isLegacy = false;
@ -200,6 +206,10 @@ public class Library {
return category;
}
public String getLicense() {
return license;
}
public static List<String> getCategories() {
return CATEGORIES;
}