Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16237

Add quote parameter option to command line exec API

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF03, 7.1
    • Component/s: Shell

      Description

      In org.nuxeo.ecm.platform.commandline.executor.api.CommandLineExecutorService#execCommand(java.lang.String, org.nuxeo.ecm.platform.commandline.executor.api.CmdParameters, boolean), there is no way to define if the parameters should be surrounded by quotes or not (before without setting the execution environment).

      For following ExifTool command with tag filtering:

      exiftool -json "-Title -Publisher" "file.mp3"
      

      doesn't work and requires to avoid quotes around tags:

      exiftool -json -Title -Publisher "file.mp3"
      

      To make it work.

      Add API to handle quote parameter option.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: