Skip to content

Commit 945eb58

Browse files
authored
Patch (#44)
* Add Maven goal `-Drun.port` argument support
1 parent 0544d31 commit 945eb58

File tree

1 file changed

+3
-0
lines changed
  • invoker/function-maven-plugin/src/main/java/com/google/cloud/functions/plugin

1 file changed

+3
-0
lines changed

invoker/function-maven-plugin/src/main/java/com/google/cloud/functions/plugin/RunFunction.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public void execute() throws MojoExecutionException {
7272
if (functionTarget != null) {
7373
args.addAll(Arrays.asList("--target", functionTarget));
7474
}
75+
if (port != null) {
76+
args.addAll(Arrays.asList("--port", String.valueOf(port)));
77+
}
7578
try {
7679
getLog().info("Calling Invoker with " + args);
7780
Invoker.main(args.toArray(new String[0]));

0 commit comments

Comments
 (0)