[Anthill-pro] getting Stamp Value
Byron Vonthal
Byron.Vonthal at marketlive.com
Mon Jul 30 18:03:15 CDT 2007
Thanks Ryan!
${bsh:WorkspaceVersion.get()} along with moving my STAMP step higher in
the process worked.
-----Original Message-----
From: Ryan Smith [mailto:rws at urbancode.com]
Sent: Monday, July 30, 2007 3:52 PM
To: Byron Vonthal
Cc: AnthillPro user and support list.
Subject: Re: [Anthill-pro] getting Stamp Value
The stamp value is usually determined as one of the steps of the build.
Once the stamp is determined, it can then be used in scripts and
directory names, etc. The only time you would want to set a workflow
property to a stamp value is if you are always going to be manually
setting the stamp value. It doesn't sound like you are doing this. In
the places where you are referencing the workflow property
${property:version}, you can use the following instead:
${bsh:WorkspaceVersion.get()}
Ryan
Byron Vonthal wrote:
> I'm trying to get the stamp value passed in as a workflow property.
>
> I'm putting '${bsh:StampLookup.getLatestStampValue()}' as the value
and
> 'version' as the name under the properties tab of a workflow.
>
> If I hard code this workflow property as '1.0.5' I will get this
> directory structure after I build:
> LanguagePack_de_DE-1.0.5 (this is correct)
>
> If I add 'workflow.BuildLife.LatestStampValue()' as property I will
get
> this:
> LanguagePack_de_DE-workflow.BuildLife.LatestStampValue() (incorrect)
>
> I'm just trying to find the syntax that will pass in the stamp value
> from the workflow property field.
>
> Make sense? Or did I confuse it even more?
>
> -----Original Message-----
> From: anthill-pro-bounces at lists.urbancode.com
> [mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Ryan
Smith
> Sent: Monday, July 30, 2007 3:24 PM
> To: AnthillPro user and support list.
> Subject: Re: [Anthill-pro] getting Stamp Value
>
> Byron,
>
> I'm slightly confused by what you are asking for. Are you trying to
get
> the stamp value of a build life or are you trying to get the value of
a
> workflow property? Can you also tell us where you are putting this
> script?
>
> Ryan Smith
>
> Byron Vonthal wrote:
>
>> I'm trying to pass the stamp value from a workflow property; it's not
>> working. AHP 3.2.1
>>
>> I've tried all of these combinations, but get the text instead of the
>> value.
>>
>> $workflow.BuildLife.LatestStampValue
>> ${StampLookup.getLatestStampValue()}
>> ${workflow.BuildLife.LatestStampValue}
>> ${workflow.BuildLife.LatestStampValue()}
>> ${bsh:StampLookup.getLatestStampValue()}
>> workflow.BuildLife.LatestStampValue()
>>
>> anyone know the right syntax?
>> _______________________________________________
>> Anthill-pro mailing list
>> Anthill-pro at lists.urbancode.com
>> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>>
>>
>>
>
>
--
===========================================================
Ryan Smith. 2044 Euclid Ave., Suite 600
Lead Developer Cleveland, Ohio 44115
Urbancode, Inc.
email: rws at urbancode.com
web: www.urbancode.com phone: 216-858-9000
web: www.anthillpro.com fax: 216-858-9602
===========================================================
More information about the Anthill-pro
mailing list