Skip to content

JAVA_OPTIONS with arguments value containing space #148

@fxprunayre

Description

@fxprunayre

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions