Skip to content

Ash Script Template Invokes Java Command without Quotes #1765

Description

@raphaelNguyen

sbt-native-packager's version: 1.11.7


Description

We attempted to switch over to using the ash script plugin recently and noticed that the generated ash script does not quote its $java_cmd variable.

exec $java_cmd $java_opts -classpath $app_classpath $opts $app_mainclass $app_commands "$@"

This means that the generated start script won't work on any environments where the path to the java command that have spaces and the like. I assumes that the fix would be to quote this variable like the bash template is already doing.

I will raise a PR for this if that is acceptable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions