Merge changes Id344fa76,I6210ea17

* changes:
  Velocity: Enable strict reference mode
  Update ChangeSubject velocity template to use Velocity 1.7 syntax
This commit is contained in:
Shawn Pearce
2014-05-10 03:00:54 +00:00
committed by Gerrit Code Review
3 changed files with 3 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ public class VelocityRuntimeProvider implements Provider<RuntimeInstance> {
p.setProperty(RuntimeConstants.VM_PERM_INLINE_LOCAL, "true");
p.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
Slf4jLogChute.class.getName());
p.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, "true");
p.setProperty("runtime.log.logsystem.log4j.category", "velocity");
if (site.mail_dir.isDirectory()) {

View File

@@ -41,7 +41,7 @@ To view, visit $email.changeUrl
To unsubscribe, visit $email.settingsUrl
#set ($notblank = 1)
#end
#if ($notblank == 1)
#if ($notblank)
#end
Gerrit-MessageType: $messageClass

View File

@@ -34,4 +34,4 @@
#macro(ellipsis $length $str)
#if($str.length() > $length)#set($length = $length - 3)${str.substring(0,$length)}...#else$str#end
#end
Change in $projectName.replaceAll('/.*/', '...')[$branch.shortName]: #ellipsis(63, $change.subject)
Change in ${projectName.replaceAll('/.*/', '...')}[$branch.shortName]: #ellipsis(63, $change.subject)