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 {
22
22
private String paragraph ;
23
23
private String url ;
24
24
private String category ;
25
+ private String license ;
25
26
private List <String > architectures ;
26
27
private File folder ;
27
28
private File srcFolder ;
@@ -125,6 +126,10 @@ private static Library createLibrary(File libFolder) throws IOException {
125
126
if (!CATEGORIES .contains (category ))
126
127
category = "Uncategorized" ;
127
128
129
+ String license = properties .get ("license" );
130
+ if (license == null )
131
+ license = "Unspecified" ;
132
+
128
133
Library res = new Library ();
129
134
res .folder = libFolder ;
130
135
res .srcFolder = srcFolder ;
@@ -136,6 +141,7 @@ private static Library createLibrary(File libFolder) throws IOException {
136
141
res .paragraph = properties .get ("paragraph" ).trim ();
137
142
res .url = properties .get ("url" ).trim ();
138
143
res .category = category .trim ();
144
+ res .license = license .trim ();
139
145
res .architectures = archs ;
140
146
res .useRecursion = useRecursion ;
141
147
res .isLegacy = false ;
@@ -200,6 +206,10 @@ public String getCategory() {
200
206
return category ;
201
207
}
202
208
209
+ public String getLicense () {
210
+ return license ;
211
+ }
212
+
203
213
public static List <String > getCategories () {
204
214
return CATEGORIES ;
205
215
}
You can’t perform that action at this time.
0 commit comments