jetty / jetty.docker

jetty docker
https://eclipse.dev/jetty
Other
19 stars 18 forks source link

JAVA_OPTIONS with arguments value containing space #148

Open fxprunayre opened 1 year ago

fxprunayre commented 1 year ago

How are we supposed to path an argument with a space?

docker run -e JAVA_OPTIONS="-Xmx1g -Dldap.user=dada" jetty:10

2023-06-28 09:06:48.887:INFO :oejs.Server:main: jetty-10.0.15; built: 2023-04-11T17:25:14.480Z; 
docker run -e JAVA_OPTIONS="-Xmx1g -Dldap.user=\"dadaada\"" jetty:10

2023-06-28 09:09:53.305:INFO :oejs.Server:main: jetty-10.0.15; built: 2023-04-11T17:25:14.480Z;
docker run -e JAVA_OPTIONS="-Xmx1g -Dldap.user=\"dada ada\"" jetty:10

Error: Could not find or load main class ada"
Caused by: java.lang.ClassNotFoundException: ada"
jetty dry run failed:
lachlan-roberts commented 1 year ago

Looks like this could be a bug in the jetty --dry-run start option. I will look into it.