Skip to content

Gradle Args with spaces #842

Closed as not planned
Closed as not planned
@keeganjm-bsc

Description

@keeganjm-bsc

Describe the bug

This issue is related to jfrog/jfrog-cli#921 (Mvn args with spaces) and is needed to pass in multiple tags with space with the Gradle command. For example:
-Dkarate.options="--tags=@smoke --tags=~@regression"

#830 is the PR that is created to address this issue. This PR is a dependency on
jfrog/jfrog-cli#2029 getting moved forward as well.

Current behavior

This command fails when being passed as the gradle command using jfrog cli like so
'jfrog rt gradle clean assemble myTest -Dkarate.options="--tags=@smoke --tags=~@regression"'

gives an error that '--tags' is not a command line argument. It is recognizing the first --tags command but not the second due to the space.

Reproduction steps

No response

Expected behavior

Gradle command to be able to accept spaces in arguments in command line so I can pass multiple tags
'jfrog rt gradle clean assemble myTest -Dkarate.options="--tags=@smoke --tags=~@regression'

JFrog CLI-Core version

1.51.1

JFrog CLI version (if applicable)

No response

Operating system type and version

linux

JFrog Artifactory version

No response

JFrog Xray version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions