#1
|
|||
|
|||
how do I set macro parameter default values?
Hey guys,
Trying to set a macro value with a parameter and give the parameter a useful default value. So far, my parameter looks like Code:
<macro> <name>LATEST_LABEL</name> <description>the Tools_*_LATEST label for this build</description> <parameters>PROJECT</parameters> <value>Tools_PROJECT_LATEST</value> </macro> Best regards, -e |
#2
|
|||
|
|||
There isn't any provision for defining a default value for a macro parameter. One alternative would be to define two project macros, i.e.,
LATEST_LABEL = Tools_%PROJECT%_LATEST PROJECT = %PROJROOT% the value of PROJROOT will be the default, then override PROJECT with a temporary macro to use something other than the default. |
#3
|
|||
|
|||
thanks for the quick reply. that's a good work-around.
-e |
|
|