Unfortunately, argument quoting is done correctly by the Grails plugin. There's a bug report covering this problem in the grails command line tool: https://jira.grails.org/browse/GRAILS-11351

Faking the grails command with this shell script:

#!/bin/bash

cat /proc/$$/cmdline | xxd 

while [[ $# -ne 0 ]]; do
  echo $1
  shift
done

produces this output when launched by the Jenkins Grails plugin :

[workspace] $ grails "-Dgrails.work.dir=dir with spaces" compile --non-interactive --plain-output
0000000: 2f62 696e 2f62 6173 6800 2f68 6f6d 652f  /bin/bash./home/
0000010: 6475 6475 2f62 696e 2f67 7261 696c 7300  dudu/bin/grails.
0000020: 2d44 6772 6169 6c73 2e77 6f72 6b2e 6469  -Dgrails.work.di
0000030: 723d 6469 7220 7769 7468 2073 7061 6365  r=dir with space
0000040: 7300 636f 6d70 696c 6500 2d2d 6e6f 6e2d  s.compile.--non-
0000050: 696e 7465 7261 6374 6976 6500 2d2d 706c  interactive.--pl
0000060: 6169 6e2d 6f75 7470 7574 00              ain-output.
-Dgrails.work.dir=dir with spaces
compile
--non-interactive
--plain-output

meaning argument quoting is done correctly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to