2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 16:27:11 -07:00

Improved @filename support

This commit is contained in:
Erik C. Thauvin 2024-08-02 21:33:33 -07:00
parent 8118f42285
commit 94225dfb7a
Signed by: erik
GPG key ID: 776702A6A2DA330E
6 changed files with 18 additions and 7 deletions

View file

@ -100,7 +100,7 @@ public class JlinkOperation extends AbstractToolProviderOperation<JlinkOperation
return options_;
}
// Shouldn't be needed, but for some reason jlink doesn't like @filename when called via ToolProvider
// Shouldn't be needed, but jlink doesn't support @filename when called via ToolProvider
private List<String> parseOptions() throws FileNotFoundException {
var list = new ArrayList<String>();
@ -109,10 +109,10 @@ public class JlinkOperation extends AbstractToolProviderOperation<JlinkOperation
while (scanner.hasNext()) {
var splitLine = scanner.nextLine().split("--");
for (String args : splitLine) {
if (!args.isEmpty()) {
if (!args.isBlank()) {
var splitArgs = args.split(" ", 2);
list.add("--" + splitArgs[0]);
if (splitArgs.length > 1 && !splitArgs[1].isEmpty()) {
if (splitArgs.length > 1 && !splitArgs[1].isBlank()) {
list.add(splitArgs[1]);
}
}