I think a better solution would be to replace the offending line with

  <arg value="-rf"/>
  <arg value="${basedir}/@{target}"/>

This would handle not only spaces, but also single-quote characters!