File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/src/processing/app/packages Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public class Library {
2222 private String paragraph ;
2323 private String url ;
2424 private String category ;
25+ private String license ;
2526 private List <String > architectures ;
2627 private File folder ;
2728 private File srcFolder ;
@@ -125,6 +126,10 @@ private static Library createLibrary(File libFolder) throws IOException {
125126 if (!CATEGORIES .contains (category ))
126127 category = "Uncategorized" ;
127128
129+ String license = properties .get ("license" );
130+ if (license == null )
131+ license = "Unspecified" ;
132+
128133 Library res = new Library ();
129134 res .folder = libFolder ;
130135 res .srcFolder = srcFolder ;
@@ -136,6 +141,7 @@ private static Library createLibrary(File libFolder) throws IOException {
136141 res .paragraph = properties .get ("paragraph" ).trim ();
137142 res .url = properties .get ("url" ).trim ();
138143 res .category = category .trim ();
144+ res .license = license .trim ();
139145 res .architectures = archs ;
140146 res .useRecursion = useRecursion ;
141147 res .isLegacy = false ;
@@ -200,6 +206,10 @@ public String getCategory() {
200206 return category ;
201207 }
202208
209+ public String getLicense () {
210+ return license ;
211+ }
212+
203213 public static List <String > getCategories () {
204214 return CATEGORIES ;
205215 }
You can’t perform that action at this time.
0 commit comments