Bug #1239

rst-proto can generate invalid XML in the generated build.xml file

Added by J. Moringen over 11 years ago. Updated over 11 years ago.

Status:ResolvedStart date:11/17/2012
Priority:LowDue date:
Assignee:J. Moringen% Done:

100%

Category:Build System
Target version:Robotics Service Bus - rsb-0.9

Description

When pathnames contain "&" characters, these end up in the generated build.xml file. In these cases, the file is invalid with respect to XML syntax. Entity references of the form & should be used.

This wouldn't normally be a problem, but our assignment of slaves based on label expressions produces workspace directories like
/home/jenkins/workspace/rst-trunk-merge-simulator/label/32bit&&(ubuntu-previous-lts||ubuntu-lts)

Associated revisions

Revision 909b0821
Added by J. Moringen over 11 years ago

Escape "&" characters properly when generating from java/build.xml.in

fixes #1239

Previously, pathnames containing "&" characters caused an invalid XML
file to be generated from java/build.xml.in.

  • java/CMakeLists.txt: replace & with & entity reference in
    variables which are used in java/build.xml.in
  • java/build.xml.in: insert pre-escaped lines for specification of jar files

History

#1 Updated by J. Moringen over 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset rst-proto|commit:909b0821e2889472874ea428369ff6d54f6e14ac.

Also available in: Atom PDF