[Nant-users] resource compilation problem

2004-05-04 Thread Jo De Greef
Title: Message



Hi 
all,

I am having a 
problem with the following scenario:

I have one class 
library with a resource file contained in it: translations.en-us.resx. When I 
compile it (using vs.net)
Iget 2 dll 
files:
- 
Translations.dll
- 
en-US/Translations.resources.dll (notice that this dll is in a 
subfolder)

I also have a web 
project, which has a file reference to Translations.dll. When I compilethe 
web project(using vs.net again)
I get in my bin 
folder both the Translations.dll and 
en-US/Translations.resources.dll.

However, when I 
compile the webproject with nant(using the solution task) I do not get 
"en-US/Translations.resources.dll" in my bin folder. I do not get any warnings or 
errors from the compiler either.

Could someone please 
shed some light on this?

Best 
regards,
-Jo

ps: I am 
usingthe nightly build from 2004/03/17.



RE: [Nant-users] nant include relative paths are not correct.

2004-05-04 Thread Mike Stephens
Is anyone else having this problem or am I doing something incorrectly?

Thanks,

Mike

Original Message Follows
From: Mike Stephens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Nant-users] nant include relative paths are not correct.
Date: Wed, 28 Apr 2004 13:21:10 +
I'm using NAnt and NAntContrib .85 from the last day or two from cvs and I 
have noticed over the last several days that the relative paths for the 
nant and include tasks are no longer what one would expect them to be.
It seems that any build files that are launched by the nant or include 
tasks would have a relative path of the subdirectory of the include file 
instead of the path of the parent Default.build file.

example:
C:\builds\Default.build  //main build file
in the Default.build file
property name=portlets.dir value=portlets //portlets directory
includes name=portlets\announcement\ann.include inheritall=true/
C:\builds\portlets\announcement\ann.include //portlet build file
The problem presents itself here when you try to access any properties that 
were set by the parent build file.   All of the properties from the parent 
build file now are relative to the C:\builds\portlets\announcement directory 
instead of from the C:\builds directory.
So if i were to try to write something back to the C:\builds\portlets 
directory using the property set in the parent build file
copy todir=${portlets.dir} overwrite=true
   fileset basedir=${portlet.bin}
	includes name=*.dll /
   /fileset
/copy
the value of ${portlets.dir} from the parent directory should be equal to  
C:\builds\portlets but now the value is going do be returned as 
C:\builds\portlets\announcments\portlets.
I am not rewriting the value of ${portlets.dir} in my portlet build file, 
this value is only set in the parent directory.

Any help would be appreciated,

Thanks,

Mike

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] copy file problem

2004-05-04 Thread Bob Archer








Im using the 5/3 nightly build with the following
script:



 target name=CopyToQA
description=Copy to QA directory.

 echo message=Copy runtime
files to QA. /

 copy
todir=\\qaevolution2003\wwwroot\Geac.QA 

 fileset
basedir=\\devevolution2k3\C$\DailyBuild\

 includes
name=** /

 /fileset

 /copy 

 /target 



Getting the following error:



System.ArgumentException: Invalid File or Directory
attributes value.

 at System.IO.File.SetAttributes(String path,
FileAttributes fileAttributes)

 at NAnt.Core.Tasks.CopyTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Te

mp\tmp9E.tmp\src\NAnt.Core\Tasks\CopyTask.cs:line 314

 at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\s

rc\NAnt.Core\Task.cs:line 151

 at NAnt.Core.Target.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp

\src\NAnt.Core\Target.cs:line 249

 at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\src\NAnt.Core\Project.cs:line
892

 at NAnt.Core.Project.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tm

p\src\NAnt.Core\Project.cs:line 849

 at NAnt.Core.Project.Run() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\sr

c\NAnt.Core\Project.cs:line 917



Please send bug report to [EMAIL PROTECTED].











What am I doing wrong? For some reason, I thought this had
worked when I wrote it.



Bob










RE: [Nant-users] copy file problem

2004-05-04 Thread Bob Archer








I found that the problem was what someone
else was mentioning here. The server had files locked and I couldnt copy
over them.



What happened to XCopy deployment? The
server isnt supposed to lock files right?











From: Brian Etheridge
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 10:39
AM
To: Bob Archer; [EMAIL PROTECTED]
Subject: RE: [Nant-users] copy
file problem







I think the includes should either be
*.*, or if you want to use the ** shorthand value then
you also need to specify a partial path. I happen to have been looking at
this this mrning and that's what I gathered from the task list documentation (I
haven't tried this myself).











Here's the reference http://nant.sourceforge.net/help/types/fileset.html.





-Original Message-
From: Bob Archer
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 3:31
PM
To:
[EMAIL PROTECTED]
Subject: [Nant-users] copy file
problem

I'm using the 5/3 nightly build with the following script:




target name=CopyToQA description=Copy to QA
directory.


echo message=Copy runtime files to QA. /


copy todir=\\qaevolution2003\wwwroot\Geac.QA 


fileset basedir=\\devevolution2k3\C$\DailyBuild\


includes name=** /


/fileset


/copy



/target 



Getting the following error:



System.ArgumentException: Invalid File or Directory
attributes value.

 at System.IO.File.SetAttributes(String path,
FileAttributes fileAttributes)

 at NAnt.Core.Tasks.CopyTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Te

mp\tmp9E.tmp\src\NAnt.Core\Tasks\CopyTask.cs:line 314

 at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\s

rc\NAnt.Core\Task.cs:line 151

 at NAnt.Core.Target.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp

\src\NAnt.Core\Target.cs:line 249

 at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies) in

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\src\NAnt.Core\Project.cs:line
892

 at NAnt.Core.Project.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tm

p\src\NAnt.Core\Project.cs:line 849

 at NAnt.Core.Project.Run() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\sr

c\NAnt.Core\Project.cs:line 917



Please send bug report to [EMAIL PROTECTED].











What am I doing wrong? For some reason, I thought this had
worked when I wrote it.



Bob












Re: [Nant-users] nant include relative paths are not correct.

2004-05-04 Thread Gary Feldman
- Original Message - 
From: Mike Stephens [EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 10:24 AM

 I'm using NAnt and NAntContrib .85 from the last day or two from cvs and I
 have noticed over the last several days that the relative paths for the
 nant and include tasks are no longer what one would expect them to be.

The documentation is, regrettably, generally silent on the determination of
the base directory used to resolve relative paths.  So the only expectation
I have is that I need to try things out to be sure.  It would be nice if
these were nailed down in the docs.

 property name=portlets.dir value=portlets //portlets directory
...
 The problem presents itself here when you try to access any properties
that
 were set by the parent build file.   All of the properties from the parent
 build file now are relative to the C:\builds\portlets\announcement
directory
 instead of from the C:\builds directory.
...
 the value of ${portlets.dir} from the parent directory should be equal to
 C:\builds\portlets but now the value is going do be returned as
 C:\builds\portlets\announcments\portlets.

This is not my understanding of properties.  Properties are strings.  They
may happen to contain paths, but they don't act like paths.  So when you set
the value of ${portlets.dir} to be portlets, that's exactly what it is in
all contexts. So when it's used, it will always be relative to whatever rule
is currently in effect for determining the current base/working directory.

If you want to set ${portlets.dir} to be a specific path that isn't relative
to the current directory, then set it to be an absolute path:

property name=portlets.dir value=${nant.project.basedir}/portlets /

Gary




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] nant include relative paths are not correct.

2004-05-04 Thread Gert Driesen
Mike,

Please provide a repro for this issue (meaning actual build files without
unrelevant targets).

Thanks

Gert

- Original Message -
From: Mike Stephens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 4:24 PM
Subject: RE: [Nant-users] nant include relative paths are not correct.


 Is anyone else having this problem or am I doing something incorrectly?

 Thanks,

 Mike


 Original Message Follows
 From: Mike Stephens [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [Nant-users] nant include relative paths are not correct.
 Date: Wed, 28 Apr 2004 13:21:10 +

 I'm using NAnt and NAntContrib .85 from the last day or two from cvs and I
 have noticed over the last several days that the relative paths for the
 nant and include tasks are no longer what one would expect them to be.
 It seems that any build files that are launched by the nant or include
 tasks would have a relative path of the subdirectory of the include file
 instead of the path of the parent Default.build file.

 example:
 C:\builds\Default.build  //main build file
 in the Default.build file
 property name=portlets.dir value=portlets //portlets directory
 includes name=portlets\announcement\ann.include inheritall=true/
 C:\builds\portlets\announcement\ann.include //portlet build file
 The problem presents itself here when you try to access any properties
that
 were set by the parent build file.   All of the properties from the parent
 build file now are relative to the C:\builds\portlets\announcement
directory
 instead of from the C:\builds directory.
 So if i were to try to write something back to the C:\builds\portlets
 directory using the property set in the parent build file
 copy todir=${portlets.dir} overwrite=true
 fileset basedir=${portlet.bin}
 includes name=*.dll /
 /fileset
 /copy
 the value of ${portlets.dir} from the parent directory should be equal to
 C:\builds\portlets but now the value is going do be returned as
 C:\builds\portlets\announcments\portlets.
 I am not rewriting the value of ${portlets.dir} in my portlet build file,
 this value is only set in the parent directory.

 Any help would be appreciated,

 Thanks,

 Mike

 _
 FREE pop-up blocking with the new MSN Toolbar - get it now!
 http://toolbar.msn.com/go/onm00200415ave/direct/01/



 ---
 This SF.Net email is sponsored by: Oracle 10g
 Get certified on the hottest thing ever to hit the market... Oracle 10g.
 Take an Oracle 10g class now, and we'll give you the exam FREE.
 http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
 ___
 Nant-users mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-users

 _
 Watch LIVE baseball games on your computer with MLB.TV, included with MSN
 Premium!

http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/dire
ct/01/



 ---
 This SF.Net email is sponsored by: Oracle 10g
 Get certified on the hottest thing ever to hit the market... Oracle 10g.
 Take an Oracle 10g class now, and we'll give you the exam FREE.
 http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
 ___
 Nant-users mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-users




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] resource compilation problem

2004-05-04 Thread Gert Driesen
Title: Message



Jo,

Right now, this is implemented in the 
solution task.

Can you file a bug report (containing a repro) for 
this issue ?

Thanks,

Gert

  - Original Message - 
  From: 
  Jo 
  De Greef 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, May 04, 2004 3:41 PM
  Subject: [Nant-users] resource 
  compilation problem
  
  Hi 
  all,
  
  I am having a 
  problem with the following scenario:
  
  I have one class 
  library with a resource file contained in it: translations.en-us.resx. When I 
  compile it (using vs.net)
  Iget 2 dll 
  files:
  - 
  Translations.dll
  - 
  en-US/Translations.resources.dll (notice that this dll is in a 
  subfolder)
  
  I also have a web 
  project, which has a file reference to Translations.dll. When I 
  compilethe web project(using vs.net again)
  I get in my bin 
  folder both the Translations.dll and 
  en-US/Translations.resources.dll.
  
  However, when I 
  compile the webproject with nant(using the solution task) I do not get 
  "en-US/Translations.resources.dll" in my bin folder. I do not get any warnings or 
  errors from the compiler either.
  
  Could someone 
  please shed some light on this?
  
  Best 
  regards,
  -Jo
  
  ps: I am 
  usingthe nightly build from 2004/03/17.
  



RE: [Nant-users] copy file problem

2004-05-04 Thread Peter McEvoy
Title: Message



Well, 
I think I was the other person that had the problem, and I never managed to get 
to the bottom of it. However, it's not a NAnt problem, as from time to 
time, I have had the same type of problem cleaning out a web dir using windows 
explorer: one moment I go to delete the contents and get a permission 
denied error onone of the sub directories (usually "bin"), then when I go 
to do it again an instant later, it will delete...

  
  -Original Message-From: Bob Archer 
  [mailto:[EMAIL PROTECTED] Sent: 04 May 2004 15:47To: 
  Brian Etheridge; [EMAIL PROTECTED]Subject: RE: 
  [Nant-users] copy file problem
  
  I found that the 
  problem was what someone else was mentioning here. The server had files locked 
  and I couldn't copy over them.
  
  What happened to 
  XCopy deployment? The server isn't supposed to lock files 
  right?
  
  
  
  
  
  From: Brian 
  Etheridge [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 10:39 
  AMTo: Bob Archer; 
  [EMAIL PROTECTED]Subject: RE: [Nant-users] copy file 
  problem
  
  
  I think the includes 
  should either be "*.*", or if you want to use the "**" shorthand value then 
  you also need to specify a partial path. I happen to have been looking 
  at this this mrning and that's what I gathered from the task list 
  documentation (I haven't tried this 
myself).
  
  
  
  Here's the reference 
  http://nant.sourceforge.net/help/types/fileset.html.
  
-Original 
Message-From: Bob 
Archer [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 04, 2004 3:31 
PMTo: 
[EMAIL PROTECTED]Subject: [Nant-users] copy file 
problem
I'm using the 5/3 nightly build 
with the following script:

 
target name="CopyToQA" description="Copy to QA 
directory."
 
echo message="Copy runtime files to QA." 
/
 
copy todir="\\qaevolution2003\wwwroot\Geac.QA" 

 
fileset 
basedir="\\devevolution2k3\C$\DailyBuild\"
 
includes name="**" /
 
/fileset
 
/copy 

 
/target 


Getting the following 
error:

System.ArgumentException: 
Invalid File or Directory attributes value.
 at 
System.IO.File.SetAttributes(String path, FileAttributes 
fileAttributes)
 at 
NAnt.Core.Tasks.CopyTask.ExecuteTask() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Te
mp\tmp9E.tmp\src\NAnt.Core\Tasks\CopyTask.cs:line 
314
 at 
NAnt.Core.Task.Execute() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\s
rc\NAnt.Core\Task.cs:line 
151
 at 
NAnt.Core.Target.Execute() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp
\src\NAnt.Core\Target.cs:line 
249
 at 
NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) 
in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\src\NAnt.Core\Project.cs:line 
892
 at 
NAnt.Core.Project.Execute() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tm
p\src\NAnt.Core\Project.cs:line 
849
 at 
NAnt.Core.Project.Run() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\sr
c\NAnt.Core\Project.cs:line 
917

Please send bug report to [EMAIL PROTECTED].




What am I doing wrong? For some 
reason, I thought this had worked when I wrote 
it.

Bob



Re: [Nant-users] nant include relative paths are not correct.

2004-05-04 Thread Mike Stephens
I have many other targets in this build file so i eliminated the ones that 
wouldn't be called just to keep this shorter.
The target build.portlets is what I'm executing and getting the problem 
descriibed below.

My problem lies anywhere where i use a property from the first default.build 
file that i use to call everything else.   So a property such as 
${portal.builds} referenced in the announcements.build file would resolve to 
C:\inetpub\wwwroot\rsiportal\controls\rockwellsoftware.portal\announcments\builds 
instead of the C:\inetpub\wwwroot\rsiportal\builds that was set in the 
parent build file

It also appears that i can't use the ../../ syntax anymore to move up a 
subdirectory it was if it was just being interpreted as a command and not a 
operator to move up subdirectories.

Any help you could provide would be greatly appreciated.

Thanks,

Mike

***
project name=FactoryTalk Portal Framework basedir=. default=dev 
xmlns=http://nant.sf.net/schemas/MSITask.xsd;
	property name=debug value=true /
	property name=builds.dir value=Builds /
	property name=portaltasks.dir 
value=${builds.dir}\RockwellSoftware.Portal.Tasks /
	property name=portalrecords.dir 
value=${builds.dir}\RockwellSoftware.Portal.Records /
	property name=coreapi.dir 
value=${builds.dir}\RockwellSoftware.Portal.Core /
	property name=portletapi.dir 
value=${builds.dir}\RockwellSoftware.Portal.Portlets /
	property name=portaltests.dir 
value=${builds.dir}\RockwellSoftware.Portal.Tests /

	property name=portal.msi.output.name value=RSIPortalSDKSetup.msi /
	property name=portal.msi.product.name value=Rockwell Software Portal 
/
	property name=portal.msi.product.version value=3.00.00.00 /
	property name=portal.build.title value=Athena Release /
	property name=portal.msi.manufacturer value=Rockwell Software /

property name=portal.msi.virtualdirectory.name value=RSIPortal /
property name=builds.basedir value=D:\Builds /
property name=portal.basedir value=. /
property name=draco value=false /
property name=nightlyBuild value=false /
property name=debug value=true /
property name=tasks.debug value=true /
	property name=build.month value=MM /
	property name=build.day value=DD /
	property name=build.year value= /
	property name=build.time value=HHMMSS /
	property name=portal value=/
	property name=portal.src value=src /
	property name=portal.controls value=Controls /
	property name=portal.controls.framework 
value=Controls\RockwellSoftware.Portal\Framework /
	property name=portal.controls.framework.images 
value=Controls\RockwellSoftware.Portal\Framework\Images /
	property name=portal.controls.framework.scripts 
value=Controls\RockwellSoftware.Portal\Framework\Scripts /
	property name=portal.controls.framework.stylesheets 
value=Controls\RockwellSoftware.Portal\Framework\Stylesheets /
	property name=portal.bin value=bin /
	property name=portal.docs value=Docs /
	property name=portal.branding value=Branding /
	property name=portal.builds value=Builds /
	property name=portal.nos value=NOS /
	property name=portal.nant value=NAnt /
	property name=portal.uploads value=uploads /
	property name=portal.install value=install /
	property name=runtime.lib value=RockwellSoftware.Portal.dll /
	property name=runtime.pdb value=RockwellSoftware.Portal.pdb /
	property name=runtime.lib.xml value=RockwellSoftware.Portal.xml /
	property name=portaltasks.lib value=RockwellSoftware.Portal.Tasks.dll 
/
	property name=portaltasks.pdb value=RockwellSoftware.Portal.Tasks.pdb 
/
	property name=nant.builds.dir value=${portal.builds}\SourceForge\NAnt 
/

   !-- build.portlets: Builds portlet projects --
	target name=build.portlets description=Builds portlet projects
		 nant buildfile=Controls\Default.build verbose=true target=build 
inheritall=true failonerror=true /
	/target
/project

*
Controls\Default.build
*
project name=RSIPortlets default=build
   
!--*--
   !--* Builds the portlets in all subdirectories  
   *--
   
!--*--

target name=build description=Builds the portlets in all 
subdirectories
		foreach item=Folder in=. property=companyname.folder
			foreach item=Folder in=${companyname.folder} 
property=portletname.folder
available type=File resource=${portletname.folder}\Default.build 
property=buildfile.present /
if test=${buildfile.present}
	nant buildfile=${portletname.folder}\Default.build target=build 
inheritall=true failonerror=true /
/if
			/foreach
		/foreach
	/target
*
One of my many build files in 

[Nant-users] Test non-bool value of a property

2004-05-04 Thread Kirchhoff, Florian
Hi:

I am using the 0.84 release of NAnt and I love it. However I don't seem
to find a 
way to do something rather simple: Execute a task depending on the value
of a property. 

How can this be done?

The if task only support testing if a property exists or if it's true,
what
if that property is not a bool:

target name=sample
sometask if=${env=='prod'} .../
or
if test=${env=='prod'} /

/target

Thanks.

Florian


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149alloc_id66op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Test non-bool value of a property

2004-05-04 Thread Jaroslaw Kowalski
There's no support for this in 0.8.4. To use expressions you need to use the
nightly build of NAnt available at:

http://nant.sourceforge.net/builds/

These releases are actually pretty stable and I use them on a daily basis.
You can now write:

if test=${propertyname=='somevalue'}
... tasks here ...
/if

task ... if=${propertyname=='somevalue'} /

More information available at:

http://nant.sourceforge.net/nightly/help/fundamentals/expressions.html
http://nant.sourceforge.net/nightly/help/fundamentals/functions.html

The expression evaluator will be included in upcoming 0.8.5.

Jarek

- Original Message - 
From: Kirchhoff, Florian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 7:58 PM
Subject: [Nant-users] Test non-bool value of a property


 Hi:

 I am using the 0.84 release of NAnt and I love it. However I don't seem
 to find a
 way to do something rather simple: Execute a task depending on the value
 of a property.

 How can this be done?

 The if task only support testing if a property exists or if it's true,
 what
 if that property is not a bool:

 target name=sample
 sometask if=${env=='prod'} .../
 or
 if test=${env=='prod'} /

 /target

 Thanks.

 Florian


 ---
 This SF.Net email is sponsored by: Oracle 10g
 Get certified on the hottest thing ever to hit the market... Oracle 10g.
 Take an Oracle 10g class now, and we'll give you the exam FREE.
 http://ads.osdn.com/?ad_id149alloc_id66opÌk
 ___
 Nant-users mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nant-users




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users