Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature:script support load external jar #138

Merged
merged 1 commit into from
Oct 21, 2020
Merged

Conversation

tiny-x
Copy link
Member

@tiny-x tiny-x commented Oct 12, 2020

Signed-off-by: tiny.x 185120555@qq.com

Describe what this PR does / why we need it

Does this pull request fix one issue?
chaosblade-io/chaosblade#369

Describe how you did it

use URLClassLoader

Describe how to verify it

# local file
blade c jvm script --debug --classname com.xy.basic.StringTest --methodname getString --external-jar file:/temp/hutool-all-5.2.5.jar --script-content xxx
# http
blade c jvm script --debug --classname com.xy.basic.StringTest --methodname getString --external-jar https://repo1.maven.org/maven2/cn/hutool/hutool-alla/5.3.10/hutool-all-5.3.10.jar --script-content  xxx
# from path
blade c jvm script --debug --classname com.xy.basic.StringTest --methodname getString --external-jar-path /temp --script-content xxx

Signed-off-by: tiny.x <185120555@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant