Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0, 1.1
-
Fix Version/s: 1.1.4
-
Component/s: Doc renderer, Site renderer
-
Labels:None
-
Number of attachments :
Description
This is an issue detected by Gump which runs Maven builds but replaces dependencies with the trunk versions of things built by Gump rather than the version a project asks for.
The Cargo build - see http://gump.zones.apache.org/gump/test/cargo/cargo/gump_work/build_cargo_cargo.html - fails because Velocity doesn't like the line
#set ( $documentHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" )
because \" is not an escape sequence for Velocity (anymore?).
I've taken this to the velocity list - http://mail-archives.apache.org/mod_mbox/velocity-dev/201008.mbox/%3C87ocdlps07.fsf@v35516.1blu.de%3E - and received the feedback that backslash
escaping was not supported - and likely never has been - and you should either use single
quotes inside the double quotes or use something like
#set( $Q = '"' )
#set ( $documentHeader = "<?xml version=" + $Q + "1.0" + $Q + ...
I realize that it probably works for you right now using Velocity 1.5, that's why I used Improvement rather than bug as category. Still it may be worth to find a solution that works for the version of Velocity you want to use as well as future versions.
Issue Links
- is related to
-
DOXIASITETOOLS-42
Downgrade velocity in doc-renderer to make it equivalent to site-renderer
-
Later feedback from the Velocity list suggest that your template probably doesn't work with Velocity 1.5 either, it just doesn't fail as spectacular as it does with Velocity 1.7.
The suggestion from the Velocity developers list is to upgrade your dependency to 1.7 and double the quotes. See http://mail-archives.apache.org/mod_mbox/velocity-dev/201008.mbox/%3CAANLkTikWYWKrE=WT4UM7RWVa=EcuTap2=JS+Hetc4eSC@mail.gmail.com%3E