Common Macros for templates in plugins

8 views
Skip to first unread message

Ben Wagner

unread,
Apr 10, 2026, 3:50:58 PM (11 days ago) Apr 10
to xnat_discussion
Hi XNAT gurus.
  I'm trying to see if there is a better way to do this.  I have common macros I use across several plugins.  Rather than potentially clobber things with each having their own I have them in their own plugin.  For the longest I've been modifying WEB-INF/conf/xnat17.properties with the items below and re-rolling my war file.  I'd really like to stop doing that.  Is there a better way to get new macro libraries into the system since the old 1.7 days?  And MathTool/DateTool.

Thanks,
Ben

# -------------------------------------------------------------------
#
#  V E L O C I T Y  S E R V I C E
#
# -------------------------------------------------------------------


# Load our VelociMacros
services.VelocityService.velocimacro.library = macros/xnat17Macros.vm,macros/ansirMacros.vm,macros/xtkMacros.vm

# -------------------------------------------------------------------
#
#  I N T A K E   S E R V I C E
#
# -------------------------------------------------------------------

# The location of the xml file specifying valid inputs
#
# If you need to define multiple definition files, you can should
# seperate them with commas.
#
services.IntakeService.xml.path = WEB-INF/conf/xnat17-intake.xml

########################################################################
#
# Add your application specific extensions here.
#
########################################################################
tool.global.mathTool = org.apache.velocity.tools.generic.MathTool
tool.global.dateTool = org.apache.velocity.tools.generic.DateTool
Reply all
Reply to author
Forward
0 new messages