apache / apache/openwhisk

How can I pass resource files to my action, like res folder in a java project ?

Open
#4,474 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

How can I pass resource files to my action, like res folder in a java project ?

ets-java$ jar cvf ist.jar *
ets-java$ ls
math ist ist.jar netwo netwcient res utils
ets-java$ wsk action create istJava ist.jar --main ist.main
ets-java$ wsk action invoke --result istJava
Activation: 'istJava' (2ecc699951aa458b8c699951aaf58bc8)
[
"2019-05-09T06:49:54.240044213Z stdout: Loading images",
"2019-05-09T06:49:54.241007057Z stderr: java.io.FileNotFoundException: ./res/.jpg (No such file or directory)",

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.