Gerrit modified my ant task by adding GIT specific environment variables in a way that causes the ant task to go belly up.
Here is a snippet from the log from a build where I have turned the escaping off. Note that the escaping option doesn't really fix the problem. Both variants (escaping on and off) fail.
When I build the project without the gerrit-trigger plugin I get the following (correct) format.
Why are those attributes added in the first place? It would probably be easiest to just add a configuration switch to disable modification of the command line.