Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: ant
Created: 04/Feb/14 11:05 PM
Description:

Using Tests Selector plugin to generate a list of test as properties to pass into ant. Hudson/ant quote the arguments incorrect. It put double quotes on the json key/value.

Tried the same test on mac (running hudson on mac), the escaping work correctly.

below....

$ cmd.exe /C '"ant.bat -file build.xml "-DSYS=[{""enabled"":true,""owner"":""shushu"",""testgroup"":""A"",""testcase"":""single"",""multiplicity"":1},{""enabled"":false,""owner"":""shushu"",""testgroup"":""B"",""setuptype"":""basic"",""testcase"":""triple"",""multiplicity"":1}]" testManual && exit %%ERRORLEVEL%%"'
Buildfile: D:\Jenkins\workspace\SYS-02-ManualBuild\SYS\build.xml

I echo out the "SYS" property and it contain the following value

[echo] [{"enabled:true,owner:shushu,testgroup:A,testcase:single,multiplicity:1},{enabled:false,owner:shushu,testgroup:B,setuptype:basic,testcase:triple,multiplicity:1}] testManual

Due Date: 05/Feb/14 12:00 AM
Environment: Hudson v 1.549, ant 1.8.3, Windows 7
Project: Jenkins
Priority: Major Major
Reporter: Sam Wei
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to