Maven Changes Plugin
  1. Maven Changes Plugin
  2. MCHANGES-176

Make ConversionTool available in the VelocityContext

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.8
    • Component/s: announcement
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It would be very useful to have access to an instance of ConversionTool in the Velocity templace so that one can convert String to List for example.

      See : http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/ConversionTool.html

      In my special case, I want to pass a list of packages as a comma-separated String in the announceParameters as configuration of the changes plugin and convert this comma-separated String as a List in the Velocity template to iterate over to send e-mails containing the packages I deployed in addition to the changes report.

        Activity

        Hide
        Dennis Lundberg added a comment -

        Velocity Tools 2.0 require Java 5 and depends upon Velocity 1.6.2.
        So this will have to wait at least until version 2.5 of the Changes Plugin.

        Show
        Dennis Lundberg added a comment - Velocity Tools 2.0 require Java 5 and depends upon Velocity 1.6.2. So this will have to wait at least until version 2.5 of the Changes Plugin.
        Hide
        Olivier Lamy added a comment -

        current version depends on Velocity 1.7.
        So can me marked as Fixed ?

        Show
        Olivier Lamy added a comment - current version depends on Velocity 1.7. So can me marked as Fixed ?
        Hide
        Robert Scholte added a comment -

        Fixed in r1352964

        Show
        Robert Scholte added a comment - Fixed in r1352964

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Antonin Stefanutti
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: