Skip to content
Snippets Groups Projects
Commit 7380e226 authored by Florian Angerer's avatar Florian Angerer
Browse files

Allow include list to be package version list.

parent d4cd8fa6
Branches
No related tags found
No related merge requests found
......@@ -118,7 +118,12 @@ public class PTAMain {
String line = null;
while ((line = br.readLine()) != null) {
includeList.add(line.trim());
int commaIdx = line.indexOf(',');
if (commaIdx != -1) {
includeList.add(line.substring(0, commaIdx).trim());
} else {
includeList.add(line.trim());
}
}
Collections.sort(includeList);
......@@ -126,7 +131,7 @@ public class PTAMain {
Set<String> includeSet = new HashSet<>(includeList);
return p -> {
return includeSet.contains(p.getFileName().toString());
return includeSet.contains(p.getFileName().toString());
};
} catch (IOException e) {
LOGGER.severe("Could not load include list file: " + includeListFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment