functions-framework-java icon indicating copy to clipboard operation
functions-framework-java copied to clipboard

Add a warning when an entry provided with "--classpath" does not exists

Open jmini opened this issue 10 months ago • 2 comments

I lost a lot of time because I had a typo in the jar listed as --classpath value when running the command:

java -jar java-function-invoker-<version>.jar \
  --classpath build/my-function-1.0.0-SNAPSHOT-runner.jar \
  --target io.quarkus.gcp.functions.QuarkusHttpFunction

I think it would make sense to add a warning to help users (like me) realizing they added an invalid entry on the list provided with --classpath.

jmini avatar Mar 26 '25 06:03 jmini

@akerekes any inputs on how the test InvokerTest#.classpathToUrls() can be extended, because I can not do assertions on the log-entries, right?

jmini avatar Nov 06 '25 09:11 jmini

@jmini would an approach like https://stackoverflow.com/a/1828268 work?

akerekes avatar Nov 06 '25 23:11 akerekes