Skip to content

Commit

Permalink
Ensure imageBuilderArgs uses last-arg-added order
Browse files Browse the repository at this point in the history
  • Loading branch information
olpaw committed Apr 19, 2018
1 parent 3fdba1a commit 6d3dbbc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ void addImageBuilderJavaArgs(Collection<String> javaArgs) {
}

void addImageBuilderArg(String arg) {
imageBuilderArgs.remove(arg);
imageBuilderArgs.add(arg);
}

Expand All @@ -628,7 +629,7 @@ void addCustomJavaArgs(String javaArg) {
}

void addCustomImageBuilderArgs(String arg) {
imageBuilderArgs.add(arg);
addImageBuilderArg(arg);
customImageBuilderArgs.add(arg);
}

Expand Down

0 comments on commit 6d3dbbc

Please sign in to comment.