[Anthill-pro] Anthill3 rc2
Curley, Patrick
pcurley at ecmc.org
Tue Oct 24 11:56:48 CDT 2006
I have a workflow with a property called CHANGE, when I start the
workflow I enter this value and using the stamping template this value
ends up being a stamp on this buildlife, this works fine unless you
don't enter a value which is the case when doing a scheduled build and
deployment for development.
So the code I have in the stamping strategy script is:
import com.urbancode.anthill3.runtime.scripting.*;
PropertyEvaluator.evaluate("${property:CHANGE}");
So, I was thinking I could use the following code instead but then I get
this error message. I just want to pass a different value if the CHANGE
param is not set.
import com.urbancode.anthill3.runtime.scripting.*;
#if ("${property:CHANGE}")
PropertyEvaluator.evaluate("${property:CHANGE}");
#else
PropertyEvaluator.evaluate("No-Ticket");
#end
ERROR:
Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced
file: inline evaluation of: ``import
com.urbancode.anthill3.runtime.scripting.*; #if ("${property:CHANGE}")
P . . . '' Token Parsing Error: Lexical error at line 2, column 2.
Encountered: "i" (105), after : "#": <at unknown location>
Is there a way to do this that works?
Thanks,
Pat Curley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20061024/d6d7b774/attachment.htm
More information about the Anthill-pro
mailing list