Skip to content

support multiple functions in one pod#65

Merged
benjaminhuo merged 1 commit intoOpenFunction:mainfrom
wanjunlei:java
Nov 1, 2022
Merged

support multiple functions in one pod#65
benjaminhuo merged 1 commit intoOpenFunction:mainfrom
wanjunlei:java

Conversation

@wanjunlei
Copy link
Member

Signed-off-by: wanjunlei [email protected]

@wanjunlei wanjunlei requested a review from benjaminhuo October 26, 2022 07:19
cmd := []string{"javap", "-classpath", classpath, target}
if _, err := ctx.ExecWithErr(cmd, gcp.WithUserAttribution); err != nil {
// The javap error output will typically be "Error: class not found: foo.Bar".
success = false
Copy link
Member

@benjaminhuo benjaminhuo Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return false here whenever ExecWithErr failed?
Which means return error whenever a function doesn't exist if there're multiple functions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.
The java application will exit if a class is not found. So it requires that all function classes exist.

@benjaminhuo benjaminhuo merged commit 0500a97 into OpenFunction:main Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants