Hi,

 

      The code written will give you an output like this. Can you please tell me what exactly is your issue is?

 

 

NAnt 0.85 (Build 0.85.1795.0; nightly; 11/30/2004)

Copyright (C) 2001-2004 Gerry Shaw

http://nant.sourceforge.net

 

Buildfile: file:///D:/NAnt/testing.build

Target(s) specified: test

 

 

test:

 

     [echo] Building PropertyTest-  1.0.0

 

BUILD SUCCEEDED

 

Total time: 0 seconds.

 

 

Thanks & Regards

Thangaraja Kannan

ETG .NET Group

LG CNS Global

Ph : 91-080-51232400 x120

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 9:40 AM
To: nant-developers@lists.sourceforge.net
Subject: nant-developers digest, Vol 1 #1398 - 1 msg

 

Send nant-developers mailing list submissions to

      nant-developers@lists.sourceforge.net

 

To subscribe or unsubscribe via the World Wide Web, visit

      https://lists.sourceforge.net/lists/listinfo/nant-developers

or, via email, send a message with subject or body 'help' to

      [EMAIL PROTECTED]

 

You can reach the person managing the list at

      [EMAIL PROTECTED]

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of nant-developers digest..."

 

 

Today's Topics:

 

   1. Getting the NAnt ${variable} working? (Wen Ching Chua)

 

--__--__--

 

Message: 1

Date: Tue, 11 Jan 2005 19:57:58 -0800

From: Wen Ching Chua <[EMAIL PROTECTED]>

Reply-To: Wen Ching Chua <[EMAIL PROTECTED]>

To: nant-developers@lists.sourceforge.net

Subject: [nant-dev] Getting the NAnt ${variable} working?

 

Hi,

 

I try to find on the internet on how to achieve this in C#, but still

can't find any good resources till i downloaded Nant.

 

 But there are too many codes inside Nant, and i have no idea which

part of Nant code that can achieve this below.

 

<?xml version="1.0"?>

    <project name="Property Test" default="test" basedir=".">

        <property name="project.name" value="PropertyTest"/>

        <property name="project.version" value="1.0.0"/>

        <target name="test">

            <echo message="Building ${project.name}-${project.version}"/>

        </target>

    </project>

 

--> I want to get the value of project.name. So i can use the

${project.name} a few times in my xml script.

 

Any idea on which portion of the NAnt code can do this?

 

I try to google, but i do not know the right keyword to search.

 

Thanks.

 

 

 

--__--__--

 

_______________________________________________

nant-developers mailing list

nant-developers@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nant-developers

 

 

End of nant-developers Digest



DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a
hard-copy version.

Reply via email to