Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [tigerstripe-users] How to setup velocitymacros Rule withTigerstripe

Title: How to setup velocitymacros Rule with Tigerstripe
Hi Jerome,
 
In order to use Velocity macros in Tigerstripe in either Global or Artifact rules you need to define the macros in 1 or more templates and then reference the macro templates in the rule definition(s) where they are to be used.
 
To reference a macro template in a rule go to the Rules tab of the ts-plugin.xml of the generator. Select a rule, and then scroll to the bottom of the bottom of the details for that rule. There you will find a table headed "Velocity Macros". Select Add, navigate and select your macros template and select ok.
 
Please find attached a simple generator where this is configured.
 
best regards,
 
Duncan


From: tigerstripe-users-bounces@xxxxxxxxxxx [mailto:tigerstripe-users-bounces@xxxxxxxxxxx] On Behalf Of Jerome Magnet
Sent: 15 May 2009 15:43
To: tigerstripe-users@xxxxxxxxxxx
Subject: [tigerstripe-users] How to setup velocitymacros Rule withTigerstripe

Hi all,
I am trying to use velocitymacros with the development of my plugin.
I have defined all my macros in a single vm file (i.e. "Macros.vm")
First, I tried by to use #parse ("Macros.vm")
But, it does not work. Parse only interprets native velovity commands (ie. I also have a "Constants.vm")
Then, I found out that the Tigerstripe advanced tutorial covers the velocitymacros.
But, it is not clear how it should be setup using the plugin Rule configuration. I only see Global Rules and Artifact Rules

I can't see the Velocity Macro section as mention in Wiki (http://wiki.eclipse.org/Tigerstripe_Advanced_Plugin_Tutorial#Velocity_Macros)

Thanks to help clarify this aspect.
Jerome

Attachment: macroExample.zip
Description: macroExample.zip


Back to the top