Thanks!

Felice

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 11:32 AM
To: Felice Vittoria; Nant-Users (E-mail)
Subject: Re: [Nant-users] can this be done?


Hi Felice,

If you don't mind having these properties defined in your build file, then
you could just use this :

<echo message="Month =
${property::get-value(datetime::get-month(datetime::now()))}" />

Hope this helps,

Gert

----- Original Message ----- 
From: "Felice Vittoria" <[EMAIL PROTECTED]>
To: "Nant-Users (E-mail)" <[email protected]>
Sent: Wednesday, March 02, 2005 6:10 PM
Subject: [Nant-users] can this be done?


Hello,

I have the following test script:

<?xml version="1.0"?>
<project name="JustStuff" default="getDate">
<property name="1"  value="January" />
<property name="2"  value="February" />
<property name="3"  value="March" />
<property name="4"  value="April" />
<property name="5"  value="May" />
<property name="6"  value="June" />
<property name="7"  value="July" />
<property name="8"  value="August" />
<property name="9"  value="September" />
<property name="10" value="October" />
<property name="11" value="November" />
<property name="12" value="December" />

<target name="getDate">
<property name="This.Month" value="${datetime::get-month(
datetime::now() )}" />
<echo message="This.Month = ${This.Month}" />
</target>
</project>

What I'm trying to do is get this month and then display the proper name of
the month.  I tried ${${This.Month}} and ${{This.Month}} without any luck.
What I would like to get is for the echo to display:  This.Month = March

Can something like this be done?

Thanks,
Felice


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to