Passing multiline text parameter to ant broken (windows)

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      A build configured to accept a Text Parameter and pass it to ant Ant build will fail if the user enters multiple lines in the text parameter field.

      For example, in the following output the parameter 'user.notes' is multiline:

      [workspace] $ cmd.exe /C '""C:\Program Files (x86)\ant\apache-ant-1.8.2\bin\ant.bat" "-Duser.notes=Optional notes

      For the keeping!" -Ddatabase.name=mm4_sit2 "-Ddatabase.fields=messages.

      {transactionreference, meridianmessagetype, queue}

      , meridianerrors.

      {errorkey}

      " -Ddatabase.host=dbhost db-capture && exit %%ERRORLEVEL%%"'
      The syntax of the command is incorrect.
      Build step 'Invoke Ant' marked build as failure
      Finished: FAILURE

            Assignee:
            Unassigned
            Reporter:
            Jem Mawson
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: