Skip to content

Attributes defined in jbang-catalog.json should but appended to the end of the command. #1910

@bartoszpop

Description

@bartoszpop

Describe the bug
Attributes defined in jbang-catalog.json should but appended to the end of the command.

To Reproduce
The below jbang-catalog.json results with

  1. Create the following jbang-catalog.json
    {
    "aliases": {
    "camel": {
    "script-ref": "org.apache.camel:camel-jbang-main:4.8.3",
    "main": "main.CamelJBang",
    "arguments": ["--quarkus-version=3.16.0"]
    }
    }
    }

  2. run the command jbang camel@apache/camel run * --runtime=quarkus. It will produce jbang9236616212127187886.args

-classpath
"(...)"
main.CamelJBang
--quarkus-version=3.17.0 <--- this should go at the end
run
.camel-jbang
.camel-jbang-run
somefile.camel.yaml
jbang-catalog.json
--runtime=quarkus

JBang version
[jbang] [0:664] jbang version 0.121.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions