property with parens (was sysinfo task)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

property with parens (was sysinfo task)

Dominik Guder
Am 26.03.2010 15:53, schrieb Ryan Boggs:
>> Another point which needs attantion (propably for 1.0) is that I was
>> able to define a property with parens without getting an exception at
>> definition time. More detail later.
>>
>Can you provide an example when you get a moment? I would like to look
>into this.

<project>
    <property name="foo(bar)" value="FooBar" />
    <property name="display" value="display a working property" />
    <echo message="${display}" />
    <echo message="${foo(bar)}" />
</project>

Result:
Build failed on last line with "Property 'foo' has not been set."
But I would expect that line one will fail where name of <property> task
is set to an invalid value.

So far Dominik

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: property with parens (was sysinfo task)

drieseng
Administrator
Hey Dominik,

What version of NAnt are you running ?
I get a failure for the "foo(bar)" property:

Property name 'foo(bar)' is invalid.

Gert

-----Original Message-----
From: Dominik Guder [mailto:[hidden email]]
Sent: vrijdag 26 maart 2010 22:37
To: [hidden email]
Subject: [nant-dev] property with parens (was sysinfo task)

Am 26.03.2010 15:53, schrieb Ryan Boggs:
>> Another point which needs attantion (propably for 1.0) is that I was
>> able to define a property with parens without getting an exception at
>> definition time. More detail later.
>>
>Can you provide an example when you get a moment? I would like to look
>into this.

<project>
    <property name="foo(bar)" value="FooBar" />
    <property name="display" value="display a working property" />
    <echo message="${display}" />
    <echo message="${foo(bar)}" />
</project>

Result:
Build failed on last line with "Property 'foo' has not been set."
But I would expect that line one will fail where name of <property> task
is set to an invalid value.

So far Dominik

----------------------------------------------------------------------------
--
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-developers

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2769 - Release Date: 03/25/10
21:50:00


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: property with parens (was sysinfo task)

Dominik Guder
Am 27.03.2010 00:16, schrieb Gert Driesen:
> Hey Dominik,
>
> What version of NAnt are you running ?
> I get a failure for the "foo(bar)" property:
>
> Property name 'foo(bar)' is invalid.
>
> Gert
>

Hi Gert,

I'm running CVS from 14.3.2010 compiled for .Net 2.0

--- Console Output ---

U:\projects\nant\nant\build\net-2.0.win32\nant-0.86-debug>bin\NAnt.exe
NAnt 0.86 (Build 0.86.3725.0; dev; 14.03.2010)
Copyright (C) 2001-2010 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///U:/projects/nant/nant/build/net-2.0.win32/nant-0.86-d
ebug/prop.build
Target framework: Microsoft .NET Framework 3.5

     [echo] just to display a working property

BUILD FAILED

U:\projects\nant\nant\build\net-2.0.win32\nant-0.86-debug\prop.build(5,6
):
Property evaluation failed.
Expression: ${foo(bar)}
              ^^^
    Property 'foo' has not been set.

Total time: 0 seconds.


So far
Dominik

--
The answer to the great question of life,
the universe and everything is 42 (Douglas Adams)

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-developers
Loading...