[Nant-users] Problem with readonly attribute on property

2005-11-15 Thread Rod Ayers



I have a "top-level" 
build file in which I initialize several properties.  It then calls a task 
in another build file  that reads a properties file, updating 
properties previously initialized.  I want to make sure that properties 
updated from the property file don't get overwritten anywhere in the script, so 
I tried teh following:
 
 
   
 
   item="Line"   
   delim="="   
   property="property.name,property.value"   
   >
 
      
 
  
  
 
   
   
 
  
   
 
 
 
 
   
 
 
   

 
   
   
 
   
 
Everything weorks 
fine, except the readonly attribute is bein ignored.  I had one property in 
the property file, build.number.  But, right after the foreach, I was able 
to set build.number to a different value with another property statement, 
withouth an error or waraning.
 
If I set readonly on 
the original property statement, any attempt to update the value results in the 
warning message:  Read-only property "build.number" cannot be 
overwritten.
 
Why doesn't 
readonly="true" work when I change the value of an existing 
property?
 
Thanks,
Rod


RE: [Nant-users] Problem with readonly attribute on property

2005-11-17 Thread Rod Ayers
Hi, Gert

I'm presently using 0.85-rc3.  My next shot to work on it is Friday, and I
will download the latest Nant and NantContrib nightly builds. 

A related question:
I'd like to check and see if the property named in property.name exists.
All the "valid" properties have already been assigned default values.  If
property.name exists, I will override with the value in property.value, and
set to readonly="true".  Otherwise, rehect the override from the property
file as an invalid property.

I've tried this:


With both a valid and invalid property in the property file.  They both get
added because property.name exists (nuts!).  I guess what I am trying to do
is double-derefernce (!)...I want to test for the property that is named in
property.name.  How might that be done?

In an unrelated logic path, I wanted to create a property if it didn't
already exist; so I tried:
mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 16, 2005 12:35 PM
To: [EMAIL PROTECTED]; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Problem with readonly attribute on property

Rod,

What version of NAnt are you using ?

This is working just fine here. 

Let me know if its working for you using a recent nightly build
(http://nant.sourceforge.net/nightly/latest).

Gert

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rod Ayers
> Sent: woensdag 16 november 2005 7:59
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] Problem with readonly attribute on property
> 
> I have a "top-level" build file in which I initialize several 
> properties.  It then calls a task in another build file  
> that reads a properties file, updating properties previously 
> initialized.  I want to make sure that properties updated from the 
> property file don't get overwritten anywhere in the script, so I tried 
> teh following:
>  
>  
> item="Line"
>   delim="="
>   property="property.name,property.value"
>   >
>  
> 
>   
>  
>  
>
>  
>   
> 
>  
> value="${string::trim(property.name)}"/>
> value="${string::trim(property.value)}"/>
>  
>
>  value="${property.value}" readonly="true" />
> 
>  
>
>  
>   
>  
>
>  
> Everything weorks fine, except the readonly attribute is bein ignored.  
> I had one property in the property file, build.number.  But, right 
> after the foreach, I was able to set build.number to a different value 
> with another property statement, withouth an error or waraning.
>  
> If I set readonly on the original property statement, any attempt to 
> update the value results in the warning message:
> Read-only property "build.number" cannot be overwritten.
>  
> Why doesn't readonly="true" work when I change the value of an 
> existing property?
>  
> Thanks,
> Rod
> 





---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Nant Response file

2005-11-17 Thread Rod Ayers



What is the format 
of the NAnt response file?  Something like this, using a file called 
NAnt.Response
 
-buildfile:NAnt.build 
-l:My.log 

-D:app.file.buildfile=My.build 
-D:app.file.properties=My.properties
 
invoked 
like:
 
NAnt 
@NAnt.Response
 
 
Thanks,
Rod


RE: [Nant-users] Problem with readonly attribute on property

2005-11-18 Thread Rod Ayers
Hi, Gary

I made the change (dropped the ' in the function), and downloaded Nant
11-13-2005.

The result is that both properties in the propties file fail.  One should
fail (build.it), but the other (build.number) should not fail...it does
exist.

Rod 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary Feldman
Sent: Thursday, November 17, 2005 9:08 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [Nant-users] Problem with readonly attribute on property

Rod Ayers wrote:

>...
>A related question:
>I'd like to check and see if the property named in property.name exists.
>All the "valid" properties have already been assigned default values.  
>If property.name exists, I will override with the value in 
>property.value, and set to readonly="true".  Otherwise, rehect the 
>override from the property file as an invalid property.
>
>I've tried this:
>
>
>With both a valid and invalid property in the property file.  They both 
>get added because property.name exists (nuts!).  I guess what I am 
>trying to do is double-derefernce (!)...I want to test for the property 
>that is named in property.name.  How might that be done?
>  
>

Your expression checks whether or not the property whose name is
'property.name' exists.  If you want to use the value of property.name as
the name to check, omit the single quotes, i.e.,



This treats property.name as a variable and returns the value, which is then
passed to the property::exists function.  Please note that for this second
form, if the property named 'property.name' doesn't exist, then it will
throw an error.

Gary




---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [NAnt-users] Strange error - batch script exits after any nant command

2005-12-21 Thread Rod Ayers
"No Echo"...you need to "call" in order to return to the bat file:

Call nant /?

Witholut the "call", control transfers to nant and the batch file ends.

Rod 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of B Wooster
Sent: Wednesday, December 21, 2005 7:54 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Strange error - batch script exits after any nant
command

On a Windows 2003 Server Standard Edition, SP1 machine, I have a strange
error - in my .bat file, the script exists after calling nant, here's a
simple test:
echo starting nant
nant /?
echo done with nant

And here's the output:
E:\>echo starting nant
starting nant

E:\>nant /?
NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005) Copyright (C) 2001-2005 Gerry
Shaw http://nant.sourceforge.net

Unknown argument '/?'

Try 'nant -help' for more information

E:\\Build>

[no final echo statement above]

I looked at event viewer, no messages related to this.

This works fine on a XP box, or a Windows 2003 Enterprise edition box.
Anyone have any thing I can try, to figure out what is going on?


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [NAnt-users] clean target

2005-12-28 Thread Rod Ayers
I do my "Clean" before I get the code...just two folders in my environment.
Then I get the code from VSS.  It's our standard Build process.  Simplifies
everything!

Rod 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Towersap
Sent: Wednesday, December 28, 2005 9:55 AM
To: Gary Feldman; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] clean target

That's what I was afraid of...  How do you deal with compiler-generated code
for C++ stuff from midl?  Do you delete those manually too? I do agree this
isn't a really big issue, I was just wondering that, since from VS.net, if I
can clean a solution or project, and it deletes everything for you (save for
the pre/post build Event stuff), that there was a known NAnt command that
would do the same in NAnt.

Thanks!
Marc
 

~~ Marc Towersap Sr. SCM Engineer

- Original Message 
From: Gary Feldman <[EMAIL PROTECTED]>
To: nant-users@lists.sourceforge.net
Sent: Wednesday, December 28, 2005 10:31:32 AM
Subject: Re: [NAnt-users] clean target

Marc Towersap wrote:

>I'm using 's to build various .sln and *proj files by passing in
the appropriate Configuration parameter (like Release or
ReleaseMinDependency.  Is there a corresponding way to "clean" the generated
files without having to a bunch of 's and 's??
>  
>
There isn't a way using the solution task, but a single delete should be
adequate.  Usually there are just a small number of directory names, so you
can use something like:







I suppose more complicated situations are possible, but this strategy has
been working fine for me.  (I actually use separate targets for C# and C++
projects, but that's no big deal.)

Gary



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [NAnt-users] lc.exe error

2006-01-27 Thread Rod Ayers



Hi, Sophie
 
I don't know if this is the same thing, but I ran into a 
problem with Infragistics license files.  By the time I had Gooled all 
over the world, I found an item buried in the vendor's site that essentially 
said to create and empty license file, and let the compile rebuild 
it.
 
E.g.:  ECHO  >license.licx (create a 0-length 
file)
 
Rod


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]Sent: Thursday, January 26, 2006 9:15 
AMTo: nant-users@lists.sourceforge.netSubject: 
[NAnt-users] lc.exe error
Hello, I can compile my entire solution in VS.NET, to I am sure 
that I do not have a license issue or an installation error with Data Dynamic's 
Active Reports.  But when I try 
to compile it in NANT using the solution target, I get the following error from 
lc.exe.  It can't seem to find the reference 
DataDynamics.ActiveReports.ActiveReports, ActiveReport.   However the 
ActiveReport.DLL is specified as a reference for this C# project, and I have 
also verified that the hint path for the project points to the correct version 
of ActiveReports.DLL. Does anyone 
know how lc.exe looks for these references or why the NANT solution task can't 
find what VS.NET always finds? I 
would appreciate any help that anyone could provide since I need to compile this 
project in NANT ASAP. Thanks, 
Sophie solution]  - C:\GADOE\AYP05\ReportDesigner\licenses.licx 
            
  [license] Output file 
'C:\GADOE\AYP05\ReportDesigner\obj\Release\GADOE.AYP.Reports.dll.licenses' does 
not exist, rebuilding.     
          [license] "Compiling license file 
'C:\GADOE\AYP05\ReportDesigner\licenses.licx' to 
'C:\GADOE\AYP05\ReportDesigner\obj\Release\GADOE.AYP.Reports.dll.licenses' using 
target 'GADOE.AYP.REPORTS.DLL'.   
                      
     [copy] Copying 5 files to 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp'.                 
             [copy] Copying 'C:\Program 
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin\lc.exe' to 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\lc.exe'.                 
             [copy] Copying 
'C:\GADOE\AYP05\Common\obj\Release\GADOE.AYP.Common.dll' to 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\GADOE.AYP.Common.dll'. 
            
                 [copy] Copying 
'C:\GADOE\AYP05\Domain\obj\Release\GADOE.AYP.Domain.dll' to 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\GADOE.AYP.Domain.dll'. 
            
                 [copy] Copying 
'C:\GADOE\FRAMEWORK\Bin\GADOE.SystemServices.dll' to 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\GADOE.SystemServices.dll'. 
            
                 [copy] Copying 
'C:\GADOE\AYP05\DataAccess\obj\Release\GADOE.AYP.DataAccess.dll' to 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\GADOE.AYP.DataAccess.dll'. 
            
  [license] Starting 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\lc.exe ( 
/target:"GADOE.AYP.REPORTS.DLL" 
/complist:"C:\GADOE\AYP05\ReportDesigner\licenses.licx" 
/outdir:"C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp" /nologo /v)' in 
'C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp'               
[license] Processing complist 
'C:\GADOE\AYP05\ReportDesigner\licenses.licx'...               
[license] C:\GADOE\AYP05\ReportDesigner\licenses.licx(1) : info LC0001 : 
Processing component entry 'DataDynamics.ActiveReports.ActiveReport, 
ActiveReports'       
        [license] 
C:\GADOE\AYP05\ReportDesigner\licenses.licx(1) : error LC0003 : Unabled to 
resolve type 'DataDynamics.ActiveReports.ActiveReport, ActiveReports' 
            
  [license] Creating Licenses file 
C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\gadoe.ayp.reports.dll.licenses... 
BUILD FAILED External Program Failed: 
C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\lc.exe (return code was 
-1): NAnt.Core.BuildException: External 
Program Failed: C:\DOCUME~1\SOPHIA~1.DOE\LOCALS~1\Temp\tmp778.tmp\lc.exe (return 
code was -1)    at 
NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask()    at 
NAnt.DotNet.Tasks.LicenseTask.ExecuteTask()    at NAnt.Core.Task.Execute()    at NAnt.VSNet.Resource.CompileLicx(String 
solutionConfiguration)    at 
NAnt.VSNet.Resource.Compile(String solutionConfiguration)    at 
NAnt.VSNet.ManagedProjectBase.WriteCompilerOptions(StreamWriter sw, String 
solutionConfiguration)    at 
NAnt.VSNet.ManagedProjectBase.Build(String solutionConfiguration) 
   at 
NAnt.VSNet.ProjectBase.Compile(String solutionConfiguration)    at NAnt.VSNet.SolutionBase.Compile(String 
solutionConfiguration)    at 
NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()    at NAnt.Core.Task.Execute()    at NAnt.Core.Target.Execute()    at NAnt.Core.Project.Execute(String 
targetName, Boolean forceDependencies)    at NAnt.Core.Project.Execute()    at 
NAnt.Core.Project.Run()


RE: [NAnt-users] Adding variables.

2006-02-20 Thread Rod Ayers



Hi, Niranjan
 
The way you coded it will concatenate value1 and 
value2.  You';; need the int::parse() function to get the numeric "value" 
of the "string".
 
Here's soemthing I ended up doing when I was formatting 
the build number.  Setting length.1 involved subtracting one property from 
another.

 
  
 
Rod


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Ramya 
NiranjanSent: Monday, February 20, 2006 9:35 PMTo: 
nant-users@lists.sourceforge.netSubject: [NAnt-users] Adding 
variables.

Hello,
 
I wish to add 2 variables using NAnt. any ideas?
 
Currently this is what i am doing:
 

 
 

 

 
 
This is returning 12. I knwo this is happening 
because the values value1 and value2 are being concatenated instead of added. 
Any ideas how to convert these strings into integers so that i could perform the 
+ operation on them? 
Thanks and Regards,
Niranjan


[NAnt-users] Exiting a Task

2006-03-24 Thread Rod Ayers
Title: Exiting a Task






Is there a way to exit from a task without completing the entire ask...other then (!!)...?




Thanks...!


Rod Ayers

Lead Build Release Engineer

Configuration Management

Desk Phone:  (949) 517-0527

Blackberry:    (949) 355-9874

3337 Michelson Dr., Irvine, CA  92612

Suite 340

B-414.05






RE: [NAnt-users] Exiting a Task

2006-03-27 Thread Rod Ayers
Hi, Gary

I have tried those alternatives.  What I had in mind, but didn't elaborate, is 
running the script "as if it was really going to do some work", but only get 
messages saying "Kilroy was here".  An approach for automation 
development/testing.  That's why I would want to do something like:

  ("true")




It's a way to check flow with out running stuff that isn't completed, or that 
you do not want actually build/deploying.

Rod

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gary Feldman
Sent: Monday, March 27, 2006 10:15 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Exiting a Task


Rod Ayers wrote:

> Is there a way to exit from a task without completing the entire 
> ask...other then (!!)...?
>
I assume you really mean exit from a target.

Usually the right way to solve this is to restructure the target, 
separating the part that always gets executed from the part that's 
optional.  There are a number of way of doing this.  You can use the 
 task with an if/unless condition.  You could also put the 
condition on the optional target.  In some cases, you might want to omit 
the condition from the first part, and instead have a parent target that 
depends upon the two, with the condition on the optional target.

Gary

>
>
> */Thanks...!/*
>
> */Rod Ayers/*
> Lead Build Release Engineer
> Configuration Management
> Desk Phone:  (949) 517-0527
> Blackberry:(949) 355-9874
> 3337 Michelson Dr., Irvine, CA  92612
> Suite 340
> B-414.05
>
>




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Traversing Directories

2006-03-28 Thread Rod Ayers
Title: Re: [NAnt-users] Traversing Directories






Hi bryan

Doesn't matter...I've done it to though not on purpose

Somewhere in nant doc it say nant will handle the platform differeces

Rod

--
Sent from my BlackBerry Wireless Handheld


-Original Message-
From: [EMAIL PROTECTED]
To: nant-users@lists.sourceforge.net
Sent: Tue Mar 28 12:22:37 2006
Subject: [NAnt-users] Traversing Directories

Does it matter if I use ..\.. or ../.. to nant for traversing directories and web paths? I ask because we have some nant scripts that have these mixed and it *seems* to work both ways.



Advice appreciated.









RE: [NAnt-users] Getting full path

2006-03-28 Thread Rod Ayers
Title: Re: [NAnt-users] Traversing Directories



Hi, 
Bryan 
 
Drop 
the quote marks...its taking $... as a literal string.  You may need to add 
a "\":  }\$
 
Rod

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Bryan D. 
  AndrewsSent: Tuesday, March 28, 2006 4:46 PMTo: 
  nant-users@lists.sourceforge.netSubject: [NAnt-users] Getting full 
  path
  
  I am stuck trying 
  to get a full path of a dynamic path:
   
  ${path::get-full-path('${dnnroot.dir}${project}')}
   
  This does not 
  work… is there an alternative (or a reason why this would not 
  work)?
   
  Thanks!
   


RE: [NAnt-users] Exiting a Task

2006-03-29 Thread Rod Ayers
Hi, Gary

Yes, I have used the "driver"/"worker" task pair in different contexts.  E.g, 
I've split a task to simplify what otherwise might be a rather convoluted "If".

There are a couple of situations I want to avoid.  The easier one is to be able 
to just look at the flow, and not "parse out" all the usual "processing 
messages".  I've tried using "global" properties, e.g., to control verbose, but 
its not the cleanest way to go. 

The other situation is where I don't have a complete environment available, or 
I'm trying to assess task flow.  Both of these conditions are presently true 
right now as I'm starting up a BizTalk Build/Deploy autoamtion project.  Yes, I 
have found lots of sample code.  Now I want to get an idea of how it all fits 
together, so I can begin to sort out what I can "adapt" (use/configure/change), 
and what I might have to add. I'm waiting and waiting for the support guys to 
get my VMWare Build/Deploy "development" environmetns up, and trying to do 
something profitable in the mean time.

For now, I will probably do something like:



   ...task housekeeping...

   
  
   

   

   




   



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gary Feldman
Sent: Tuesday, March 28, 2006 9:46 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Exiting a Task


Rod Ayers wrote:

>I have tried those alternatives.  What I had in mind, but didn't elaborate, is 
>running the script "as if it was really going to do some work", but only get 
>messages saying "Kilroy was here".  An approach for automation 
>development/testing.  That's why I would want to do something like:
>
>  ("true")
>
>
>
>
>It's a way to check flow with out running stuff that isn't completed, or that 
>you do not want actually build/deploying.
>  
>
It sounds like you want something analogous to the -n option of make.  I 
know there have been times when I wanted that.  Perhaps that's something 
that can be put on the list for post 0.85.

You might be able to fake it by dividing your targets into two types:  
those that manage control flow, and those that do work.  Then you can 
either put flags on the latter to prevent them from doing anything, or 
put them into an include file, and have a parallel include file for just 
tracing.  Another possibility would be to use xslt to create a derived 
build file with all the action tasks disabled, keeping just the  
and control structures.  None of these ideas are particularly 
satisfactory, since they involve a fair bit of tedious work and intrude 
upon the clarity of the build script, but they might get you by for a while.

Personally, I just test by using a scratch area.  I don't do anything 
with NAnt beyond its own build tree (e.g., I don't currently use NAnt to 
tag builds, checkin files, or make any other changes that would affect 
other developers).  So the only harm in letting things run fully is the 
extra time it takes to test.  I handle that by keeping targets small, 
and testing in small chunks.  I don't know if the Ant community has 
developed any better approaches, but I think that a really good system 
for testing NAnt build scripts is some time away.

Gary



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Using Include

2006-03-29 Thread Rod Ayers
Title: Using Include






Hi, all


I'm trying to get a clear understanding of the impact of using .


1.  The contents of the included file makes the included code act as if it was all part of one build file.  


2.  Tasks in the included file would be invoked with , rather than  as with "separate" build files.


3.  Properties in included files would share the same "memory space" as the build file.  Using separate files and  would create's a child memory area where the child's properties exist, though the child can reference the parent's properties.

Does that pretty well cover it?



Thanks...!


Rod Ayers

Lead Build Release Engineer

Configuration Management

Desk Phone:  (949) 517-0527

Blackberry:    (949) 355-9874

3337 Michelson Dr., Irvine, CA  92612

Suite 340

B-414.05






RE: [NAnt-users] MSI: KeyFile not found in Component

2006-03-30 Thread Rod Ayers



Hi, 
Kevin
 
Does 
 know where to find the dll?  You have a folder specified 
on the component, and one on the fileset.  Is the value in {build.bin.dir} 
= C:\Automation\Common\Assemblies?  f not, might you need to code it as 
?
 
Rod
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Kevin 
  KirkpatrickSent: Thursday, March 30, 2006 1:47 PMTo: 
  nant-users@lists.sourceforge.netSubject: [NAnt-users] MSI: KeyFile 
  not found in Component
  
  I 
  have been struggling with all day long. I’ve looked through the mail archives 
  and couldn’t find a clear answer.
  Can 
  anyone please tell me why this is failing?  Thanks in 
  advance.
   
  -
  makeMSI:
   
    [msi] Building 
  Installer Database '\\s2deploy\devreleases\3.11.0.test.msi'.
  BUILD 
  FAILED - 0 non-fatal error(s), 1 warning(s)
  D:\Build\AutoApp\autoapp.build(493,3):
  Unable to build Installer database 
  '\\s2deploy\devreleases\3.11.0.test.msi'.
  
      KeyFile 
  "ApplicationBlocks.Automation.Common.Messaging.dll" not found in Component 
  "C_AutomationCommon".
   
  Code section
   
       
  
      
      
      
      
  directory="c:\Automation\Common\Assemblies"
      
      
  installassembliestogac="true" 
      
      
  feature="F_Automation" 
      
      
  id=""
      
      
  attr="2"
      
      
  keepsubdirs="true"
      
      
  > 
   
      
      
   
  
   
      
      
   
      
      
  
      
      
   
  
      
      
   
  
      
      
   
  
      
      
  
   
  
      
      
  
      
      
   
      
      
      
  


RE: [NAnt-users] MSI: KeyFile not found in Component

2006-03-30 Thread Rod Ayers



There 
you go...using those technical terms again..."mud".
 
I 
wouldn't expect the basedir on the fileset to be recognized outside the fileset, 
if not explicitly coded in another context.  It's a property of the file 
set.
 
Does 
the key file exist in the same folder as the component?
 
Rod

  -Original Message-From: Kevin Kirkpatrick 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, March 30, 2006 
  2:35 PMTo: Rod Ayers; 
  nant-users@lists.sourceforge.netSubject: RE: [NAnt-users] MSI: 
  KeyFile not found in Component
  
  Hey Rod,
  Good question.  I thought by 
  defining it in a fileset that would be good enough. 
  
  I read it as the directory definition in 
  the component is the target, deploy “to” folder.  And the fileset 
  contains the files to build into the component. 
  :^\
   
  I originally had it coded to represent 
  .  I get the same failed 
  result with the build bin dir path in the key file value.  But then in 
  reading the mail archives folks were saying the directory path is not 
  allowed.  This is as clear as mud to me.
   
  
  
  
  
  From: 
  Rod Ayers [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 2:13 
  PMTo: Kevin Kirkpatrick; 
  nant-users@lists.sourceforge.netSubject: RE: [NAnt-users] MSI: KeyFile 
  not found in Component
   
  
  Hi, Kevin
  
   
  
  Does  know where to find 
  the dll?  You have a folder specified on the component, and one on the 
  fileset.  Is the value in {build.bin.dir} = 
  C:\Automation\Common\Assemblies?  f not, might you need to code it as 
  ?
  
   
  
  Rod
  
   
  
-Original 
Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]On Behalf Of Kevin 
KirkpatrickSent: Thursday, 
March 30, 2006 1:47 PMTo: 
nant-users@lists.sourceforge.netSubject: [NAnt-users] MSI: KeyFile not 
found in Component
I have been struggling with all day long. I’ve 
looked through the mail archives and couldn’t find a clear 
answer.
Can anyone please tell me why this is failing?  
Thanks in advance.
 
-
makeMSI:
 
  [msi] Building 
Installer Database 
'\\s2deploy\devreleases\3.11.0.test.msi'.
BUILD FAILED - 0 non-fatal error(s), 1 
warning(s)
D:\Build\AutoApp\autoapp.build(493,3):
Unable to build Installer database 
'\\s2deploy\devreleases\3.11.0.test.msi'.

    KeyFile 
"ApplicationBlocks.Automation.Common.Messaging.dll" not found in Component 
"C_AutomationCommon".
 
Code 
section
 
     

    
    
    
    
directory="c:\Automation\Common\Assemblies"
    
    
installassembliestogac="true" 
    
    
feature="F_Automation" 
    
    
id=""
    
    
attr="2"
    
    
keepsubdirs="true"
    
    
> 
 
    
    
 

 
    
    
 
    
    

    
    
 

    
    
 

    
    
 

    
    

 

    
    

    
    
 
    
    
    



RE: [NAnt-users] Increment number

2006-04-10 Thread Rod Ayers



 
Hi, 
Daniell
 
In 
this case I had already set the value of index, and needed to increment it to 
save in index.1.
 
 value="${int::parse(index) + 
1}"/>
 
And 
another:
 
value="${string::substring(build.number, 
int::parse(index.1),int::parse(length.1))}"/>
 
Rod

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Daniell, 
  Casey BSent: Monday, April 10, 2006 12:52 PMTo: 
  nant-users@lists.sourceforge.netSubject: [NAnt-users] Increment 
  number
  Ok,
   
  How do I increment the value 
  of a property by one (1) in a nant 
  script.
   
   
  I want to read a 
  file, get a value from that file (its sets a property), then increment it by 
  one for future use.
   
  I have 
  tried:
   
         
  xpath="/IntegrationResult/Label" 
  property="last.build"/>   
  
   
  OUTPUT== [echo] 
  THIS BUILD TAG IS 75 + 1
   
  Basically, I know 
  I need to dereference the property add the integer 1 to it, then save it to 
  the new value. How do I go about doing this? 
   
  Casey


RE: [NAnt-users] project.get-name

2006-04-24 Thread Rod Ayers



Try 
this:  ${project::get-name()}

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Ahmed, 
  ShabanaSent: Monday, April 24, 2006 1:28 PMTo: 
  nant-users@lists.sourceforge.netSubject: [NAnt-users] 
  project.get-name
  Hi All,
   
     I am currently working with NANT 
  0.85. I want to replace nant.project.name in the code 
  below to 
  "project.get-name()". I am trying to lookup the syntax/examples 
  to use this. Anybody , figured it out already. Please let me 
  know.
   
  
  Thanks,
  Shabana


RE: [NAnt-users] Directory paths with spaces

2006-04-25 Thread Rod Ayers



Hi, 
Jay
 
The 
workaround I found is to sepcifiy the parameter and the parameter value 
separately, as below where I split the "/out" parm:
   
append="false" 
verbose="true"   >
 
   

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Jay 
  WilliamsSent: Tuesday, April 25, 2006 8:04 AMTo: 
  nant-users@lists.sourceforge.netSubject: [NAnt-users] Directory 
  paths with spaces
  
  Hi,
   
  I need to call 
  devenv directly from within my nant script, but the call won’t work since 
  there are spaces in the file path (it’s located in C:\Program Files\Microsoft 
  Visual Studio 8\Common7\IDE). How do I specify for there to be double-quotes 
  within the call? I used to just allow the call to find devenv from the 
  environment path, but now we have VS 2003 and VS 2005 on our build box, so I 
  need to distinguish between the two.
   
  I need to do the 
  following:
   
  
   
  I get an error 
  because nant tries to execute something like “c:\program” which doesn’t work, 
  of course. How do I get double-quotes into the path? I want it to do something 
  like:
   
  (command prompt 
  example—this works from a command prompt, so nant needs to output the command 
  with double-quotes around it)
  C:\>”C:\Program 
  Files\Microsoft Visual Studio 8\Common7\IDE\devenv” e:\web\mobilens.sln 
  /rebuild Debug
   
  Thanks in 
  advance!
  Jay
   
  
  
  
  .Jay WilliamsSoftware 
  EngineerM:Metrics, Inc.t    +1 206 447 
  1860f    +1 206 
  447 1855www.mmetrics.com:mobile market measurementBecause 
  there’s more to the mobile market than just talk. 
   


RE: [NAnt-users] NAnt & Infragistics

2006-04-27 Thread Rod Ayers



I had 
to install Infragistics on the Build System.  Another problem I had was the 
license file...the one that existed was "acceptable".  I fixed that problem 
by echoing a null line to each occurrence of the license file so it would be 
empty ("0" length).  That fix I finally tracked down on the Infragistics 
web site.
 
Rod

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Ahmed, 
  ShabanaSent: Thursday, April 27, 2006 2:13 PMTo: 
  nant-users@lists.sourceforge.net; 
  nant-developers@lists.sourceforge.netSubject: [NAnt-users] NAnt 
  & Infragistics
  Hi All,
   
    I am trying to automate the build process 
  for a project that uses quite  few Infragistics Controls. When runa build 
  I get numerous errors thrown by the VB  Compiler. I have attached the 
  verbose for the sample project.
   
    Please let me know if any of you have 
  had similar issues tiring to automate an application that uses Infragistics 
  extensively. Is NAnt compatible with Infragistics at all?
   
    You help and suggestions will greatly be 
  appreciated.
   
  Thanks,
  Shabana


RE: [NAnt-users] NAnt & Infragistics

2006-04-28 Thread Rod Ayers



Hi, 
Shabana...
 
Which 
piece...there's a separate thread moving ahead on the references issue, and 
sounds like it will be a better resolution.
 
License files...I was getting errors because of the license files in the 
project...the very ones we using to build before we started NAnt 
automation.  I had/sound some feedback that said just delete them...they 
would be regenerated on the fly.  Except, they weren't regenderated, and I 
got different errors.  Then I found an item buried on the Infragistics web 
site that said the license files should exist, but should be empty/null...a 
0-length.  The way I fixed the problem was to use the echo task to redirect 
a null value to the license file.  Worked like a champ.
 
Rod

  -Original Message-From: Ahmed, Shabana 
  [mailto:[EMAIL PROTECTED]Sent: Friday, April 28, 2006 8:03 
  AMTo: Rod Ayers; nant-users@lists.sourceforge.net; 
  nant-developers@lists.sourceforge.netSubject: RE: [NAnt-users] NAnt 
  & Infragistics
  
  Can you please go into a 
  little bit detail as to how I could go about implementing what you suggested? 
  Thanks for your help.
   
  -Shabana
  
  
  From: Rod Ayers 
  [mailto:[EMAIL PROTECTED]Sent: Thu 4/27/2006 5:20 PMTo: 
  Ahmed, Shabana; nant-users@lists.sourceforge.net; 
  nant-developers@lists.sourceforge.netSubject: RE: [NAnt-users] NAnt 
  & Infragistics
  
  I 
  had to install Infragistics on the Build System.  Another problem I had 
  was the license file...the one that existed was "acceptable".  I fixed 
  that problem by echoing a null line to each occurrence of the license file so 
  it would be empty ("0" length).  That fix I finally tracked down on the 
  Infragistics web site.
   
  Rod
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]On Behalf Of Ahmed, 
ShabanaSent: Thursday, April 27, 2006 2:13 PMTo: 
nant-users@lists.sourceforge.net; 
nant-developers@lists.sourceforge.netSubject: [NAnt-users] NAnt 
& Infragistics
Hi All,
 
  I am trying to automate the build 
process for a project that uses quite  few Infragistics Controls. When 
runa build I get numerous errors thrown by the VB  Compiler. I have 
attached the verbose for the sample project.
 
  Please let me know if any of you 
have had similar issues tiring to automate an application that uses 
Infragistics extensively. Is NAnt compatible with Infragistics at 
all?
 
  You help and suggestions will greatly be 
appreciated.
 
Thanks,
Shabana


Re: [NAnt-users] Setting property after reading from a file.

2006-06-13 Thread Rod Ayers



Hi, 
Niranjan
 
I did 
that quite easily with a response file.  Here's a snippet from the batch 
file I used:
NAnt 
@myapp.response %*
 
The 
"@" indicates that myapp.response is a response file.  The extension has no 
particular meaning, and could even be omitted.
 
The %* 
added any parms passed to the CMD file when it was exewcuted at the command 
line.
 
Here 
are some lines from the response file...just like you indicated.  The "#" 
indicates a comment line; it isn't parsed.  The other lines follow the NAnt 
command line requirment:  The "-D" indicates the 
a property/value pair Note that properties initialized from a respons file 
will be marked readonly in the NAnt script during 
execution.
-buildfile:NAnt.build-l:MyApp.log
 
-D:app.build.number=05.12.08.02
 
#-D:app.asminfo.AssemblyCopyright=2004#-D:app.asminfo.AssemblyProduct=MyApp#-D:app.asminfo.AssemblyTrademark=MyCompany#-D:app.asminfo.CLSCompliant=true
 
#-D:app.bypass.vss=true#-D:app.bypass.vss.all=true
 
-D:app.file.buildfile=MyApp.build-D:app.file.properties=MyApp.properties
 
I tired to be more creative with a properties file, not unlike what you 
tried, but haven't gotten it to work just right.
 
Rod
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Ramya 
  NiranjanSent: Monday, June 12, 2006 9:55 PMTo: 
  nant-users@lists.sourceforge.netSubject: [NAnt-users] Setting 
  property after reading from a file.
  Hello All,
   
  I have a text file info.txt that contains some version specific 
  information like:
  MAJORVERSION=4.0
  MINORVERSION=11
  BRANCHINFO=COR
   
  What I need to do is create some properties like majorversion, 
  minorversion and branchinfo in NAnt and assign these values after reading from 
  the txt file. In short, whenever there is a change in the version or branch 
  value, I should change only this text file and not the build file. Is this 
  possible? 
   
  I have tried using foreach item=Line in filename property=some value, but 
  this only sets the last value to the property as the previous 2 value get 
  overwritten. Loadfile is also not of much help.
   
  Rgds,
  Niranjan
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Setting property after reading from a file.

2006-06-21 Thread Rod Ayers
Hi, Gary 

I'm intrigued how you would implement the "XML approach".  Probably so easy
I've totall yoverlooked it  :):)
 
Thanks!
Rod

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary Feldman
Sent: Tuesday, June 13, 2006 9:49 AM
To: Ramya Niranjan
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Setting property after reading from a file.

Ramya Niranjan wrote:
> I have a text file info.txt that contains some version specific 
> information like:
> MAJORVERSION=4.0
> MINORVERSION=11
> BRANCHINFO=COR
>  
> What I need to do is create some properties like majorversion, 
> minorversion and branchinfo in NAnt and assign these values after 
> reading from the txt file. In short, whenever there is a change in the 
> version or branch value, I should change only this text file and not 
> the build file. Is this possible?
>  
> I have tried using foreach item=Line in filename property=some value, 
> but this only sets the last value to the property as the previous 2 
> value get overwritten. Loadfile is also not of much help.
To do it that way, you'd obviously have to parse the line that you read in
order to extract the correct property name.

But you'd be much better off either storing this information in XML or using
the response file technique suggested by Rod Ayers.  The advantage of the
XML approach is that it avoids the readonly issue, and it is easier to just
automatically update one entry without having to update the entire file.
The advantage of the response file approach is that it's easier to
understand, read, and get working in the first place.

Gary




___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Shared Components

2006-09-12 Thread Rod Ayers
Hi, Eric

I've got a couple of variations.

For one, we have an "Assemblies" folder in VSS, and I can get from
their.  It's a little not neat, because I have to do a setup each Build
separately.  Also, I've found that Developers don't keep the shared
folder current...or they make minor tweaks for their app, that don't
apply generally.  That makes a real mess out of "common/shared".

What I did do was to create a local  Assemblies folder under the Build
folder.  I used VSSGet to get the required shared assemblies folder from
VSS, and put them in the local shared assemblies folder under the Build
folder.  I usually try to run with a set of "locked down" Build
files...my personal copy of all the solution and .*proj files.  That way
I can set the references when I take on the Build, and they stay put.

In this case, I kept my Build files in a separate folder under the
project in VSS.  Then, after I did the "get", I would copy my copy of
the Build files over top of the code, so I always knew what I was using
for the Build.  And all the Builds were clean.  Developers only needed
to tell me if they made changes to the project or solution files, and
that was rare once a new app got settled in.

I've tried just getting the Assemblies from the VSS Assemblies folder,
and having a local common assemblies folder.  That kind of works, too,
but I sometimes get crossed up with what the Developers do.

More recently, I have a Build that has several shared assemblies, some
for this project, some for that.  In this case, I created an Assembly
project (.vbproj), put all the assemblies in it, made the references
relatively to the Assemblies project, and excluded the Assemblies
project compile from all configurations (Development, Release).  That's
worked pretty well, since .Net knows to actually retrieve them from VSS
and the Developer Builds work fine, and I get them easily, too.

Things would be somewhat easier if every developer didn't have at least
three different ways of structuring their local Build areas.

I would prefer to run all shared/common assemblies from one folder, and
handle the relative pathing when I set up the Build.  But our Developers
aren't quite that disciplined yet about a true common/shared folder.


Rod
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Fetzer
Sent: Tuesday, September 12, 2006 8:39 AM
To: Nant Users
Subject: [NAnt-users] Shared Components

I'm looking for "Best Practices" for components that are shared among
several applications in reference to NAnt.  First of all, dll or project
references.  If I have dll references, I have to get all of the
developers to keep these components in the same place as I keep them for
the build so that the hint path resolves.  If I go with project
references, I have to build the shared component inside of the same
 task as I'm building the application, correct?  What I'd
rather do is call a .build file for each of the shared components
telling it what label to get the code from and where to put the
assemblies when it compiles them.  However, this only works for dll
references because a project reference won't be able to resolve the
GUID.  Any advise would be very much appreciated, we're getting A LOT of
shared components going and it's getting pretty confusing the way I'm
doing it right now.

Thanks,
Eric

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Shared Components

2006-09-12 Thread Rod Ayers
Hi, Eric

Sounds OK at first blush...assuming you're getting everything you need
for all possible "shared projects">

Rod  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Fetzer
Sent: Tuesday, September 12, 2006 10:43 AM
To: Bob Archer; Nant Users
Subject: Re: [NAnt-users] Shared Components

Thanks for your reply Bob and Rod!

We've got a new twist that developed in a meeting this morning.  We're
moving over to project references only.  The lead architect here is
insistent because Microsoft considers this "Best Practice".  From a CM
perspective, this makes it tougher in reference to shared projects,
however.  So here's my plan I guess:

Each one of the shared projects will have it's own build which will
check out the code (based on the label set in the parent .build file)
and build relatively from the build.dir also set in the parent.build
file (.\project.name).  Then when a project is dependant on that
project, I'll use  to point to the csproj file that's
referenced.

Can anybody think of a better way to do this?

Thanks,
Eric

--- Bob Archer <[EMAIL PROTECTED]> wrote:

> > If I have dll references, I have to get all of the
> developers to keep
> these components in the same place as I keep them for the build so 
> that the hint path resolves.
> 
> My first comment is having all your devs use the same directory 
> structure is actually a good thing. It makes source control much 
> easier for one. It also helps when devs pair so they know where 
> everything is no matter what PC they are working on.
> 
> Secondly, this comment is not true. In Visual Studio the users 
> "Reference Path" settings for a project take precedence over the hint 
> path in the project. So each dev can put the DLL's wherever they want.
> This way if they want to build against a different version than in the

> hint path they can just adjust their reference path for that project.
> Reference paths are stored in the .user files which you should not be 
> checking into source control.
> 
> At my shop we have a separate source control (PVCS Version Manager) 
> project called CommonBinaries which holds all the shared DLL's. The 
> project folder has sub-folders for each 3rd party (including us) and 
> within that is a version folder. For example, 
> CommonBinaries/CrystalReports/v10. Sometimes you don't need the 
> version folder, or you can make the version more or less granular. You

> could also have Net1.1 and Net2.0 divisions.
> 
> The builds that create the internal shared binaries check the latest 
> version into source control. The 3rd party ones are of course manually

> managed. This way, you don't need every app that uses common DLLs to 
> build the common project as well.
> 
> So, my bottom line suggestion is to go with DLL references for 
> internal DLLs that are shared by multiple projects. I think this is 
> the way to go, and it works for us.
> 
> BOb
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Eric 
> Fetzer
> Sent: Tuesday, September 12, 2006 11:39 AM
> To: Nant Users
> Subject: [NAnt-users] Shared Components
> 
> I'm looking for "Best Practices" for components that are shared among 
> several applications in reference to NAnt.  First of all, dll or 
> project references.  If I have dll references, I have to get all of 
> the developers to keep these components in the same place as I keep 
> them for the build so that the hint path resolves.  If I go with 
> project references, I have to build the shared component inside of the

> same  task as I'm building the application, correct?  What 
> I'd rather do is call a .build file for each of the shared components 
> telling it what label to get the code from and where to put the 
> assemblies when it compiles them.  However, this only works for dll 
> references because a project reference won't be able to resolve the 
> GUID.  Any advise would be very much appreciated, we're getting A LOT 
> of shared components going and it's getting pretty confusing the way 
> I'm doing it right now.
> 
> Thanks,
> Eric
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
> 
>

> -
> Using Tomcat but need to do more? Need to support web services, 
> security?
> Get stuff done quickly with pre-integrated technology to make your job

> easier Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/nant-users
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://m

Re: [NAnt-users] Shared Components

2006-09-12 Thread Rod Ayers
A great, helpful discussion

I absolutely agree with the concept of treating "internally-created"
assemblies/dll's in the same way as we would "third-party" stuff.  It's
a powerful concept, though I've known developers who seem to get really
confused by the idea!

Rod 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob
Archer
Sent: Tuesday, September 12, 2006 11:29 AM
To: Eric Fetzer; Nant Users
Subject: Re: [NAnt-users] Shared Components

Do you have a link to that article?

He is absolutely right. When multiple projects are in a single solution
using a project reference is the best way to do it. But, having all have
to get all source to common projects and needing to rebuild that project
is a pain. Or course, there is an advantage such as if you want to debug
into the common code.

As said above, I think in relation to a specific solution you should
treat commonly shared DLLs that are created internally separate just as
you do with third party DLLs. If you were using log4net you wouldn't add
all the source code projects to your solution, right? You would just add
a DLL reference. 

Also, if you are using VB.Net the more source code you have in the
solution the slower things will go. This is due to the background
compiler. We even pulled a project that was specific to our app out of
the solution and use a DLL reference. This is the project with all the
typed data sets. There is so much code in it that. But, since it isn't
change to often we prefer to not have the background compiler chew on it
every time we open our solution.

Anyway, whatever works best will be fine. Keep in mind, a project can
reside in multiple solutions. So, you can have solutions that you use
for your build system and other solutions that your devs use. Of course,
if you are not using the solution task it doesn't really matter. 

In my opinion though the important issue is to ensure that the
versioning and building of the "common" stuff is kept separate from the
applications that are dependant on it. But, some people like to have the
developers and the build server run the same build scripts. I personally
never found that necessary.

Remember, if it were easy, everyone would be doing it.

Bob
 

-Original Message-
From: Eric Fetzer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 2:12 PM
To: Bob Archer; Nant Users
Subject: RE: [NAnt-users] Shared Components

Actually, John Mischel at Microsoft put out an article entitled "Project
Structure Best Practices" where he said (note paragraph 2):

There are several different ways that you can structure your solutions
and projects. The most common method is a single solution that contains
multiple projects. This model works well for small and medium-large
systems that consist of one or more project assemblies. It allows each
member of your development team access to all of the projects in the
solution, allowing them to build and deploy the entire solution on their
local workstations. The single-solution has the following primary
advantages and disadvantages:

When you need to reference another assembly generated by a separate
project, you can use a project reference. Project references are the
preferred way to establish references to other assemblies and they are
guaranteed to work on all development workstations in a team
environment. In addition, because project references are sensitive to
changes in the configuration of the referenced project, you can
automatically switch from Debug and Release builds across projects
without having to reset references. 
Assembly versioning issues are avoided, because Visual Studio .NET
detects when a client of a referenced assembly needs to be rebuilt. 
The system build process and build script is much simpler. 
The model scales only so far. If you want to work on a single project
within the solution, you are forced to acquire all of the source code
for all projects within the solution. 
Due to project dependencies, even minor (non-breaking) changes to a
single source file within a single project can result in a rebuild of
many projects within the solution. If an assembly's interface changes
within a referenced project, you want the client project to be rebuilt.
However, unnecessary rebuilds can be very time consuming, especially for
solutions containing many projects.


--- Bob Archer <[EMAIL PROTECTED]> wrote:

> MS has a white paper on this at
>
http://msdn.microsoft.com/practices/compcat/default.aspx?pull=/library/e
> n-us/dnbda/html/tdlg_rm.asp
> 
> And they list several ways of structuring a project.
> But, no where do
> they say which one is "best"... the basically say it depends on your 
> project and circumstances.
> 
> BOb
> 
> 
> -Original Message-
> From: Eric Fetzer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 12, 2006 1:43 PM
> To: Bob Archer; Nant Users
> Subject: RE: [NAnt-users] Shared Components
> 
> Thanks for your reply Bob and Rod!
> 
> We've got a new t

Re: [NAnt-users] deploying to remote server using NAnt

2006-10-13 Thread Rod Ayers
We started scripting using VBS and WMI.  Of course, WMI inerface is availbable 
to VB and C#, so you can put your script in NAnt.

WMI gives you access to everything concievable on local or remote systems, 
including running jobs on remote systems.

Rod

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of mandar
ambre
Sent: Friday, October 13, 2006 10:41 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] deploying to remote server using NAnt


Hi Guys,

Is anybody aware of how to deploy to a remote test
server using NAnt or any other automation tool.We are
currently using NAnt and CruiseControl to create daily
builds on a build server and then we copy these builds
over to the test server.But I wanted to know if there
was a way to automate this process as well.Any help is
much appreciated.Thanks in advance

Regards,
Mandar

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] bug in path::get-directory-name()?

2007-02-14 Thread Rod Ayers
Don't forget that both files and subdirectories are objects in the parent 
folder.

We assign special meaning to "directory/folder", but the function returns 
information about the parent of the object.  

Rod


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel
Blendea
Sent: Wednesday, February 14, 2007 8:11 AM
To: Bob Archer
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] bug in path::get-directory-name()?


Indeed...

[Function("get-directory-name")]
public static string GetDirectoryName(string path) {
string dirName = Path.GetDirectoryName(path);
return StringUtils.ConvertNullToEmpty(dirName);
}

the function is a wrapper around the equivalent .NET method.

so i take it that the only 2 options i have are:
1 - use string related functions
2 - extend nant

Daniel

On 2/14/07, Bob Archer <[EMAIL PROTECTED]> wrote:
> You may want to get the code and look at the tests for this function.
> But, I assume it returns everything in a string prior to the final
> back(forward)slash. Since it returns a string the information is
> apparently just the path name.
>
> BOb
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
> Blendea
> Sent: Wednesday, February 14, 2007 10:48 AM
> To: nant-users@lists.sourceforge.net
> Subject: [NAnt-users] bug in path::get-directory-name()?
>
> Hi all,
>
> I'm trying to use path::get-directory-name() and if  is a
> directory
> the function returns the parent directory.
>
> Is this the correct behaviour? because i think it isn't.
>
> The description of the function is rather vague:
> "Returns the directory information for the specified path string. "
>
> What directory information? size? subfolders?
>
> Thank you for your reply.
> Daniel
>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> V
> ___
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] bug in path::get-directory-name()?

2007-02-14 Thread Rod Ayers
Have you tried:
path::get-directory-name("c:\my-folder\")

or 

path::get-directory-name("c:\my-folder\*.*")

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel
Blendea
Sent: Wednesday, February 14, 2007 8:11 AM
To: Bob Archer
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] bug in path::get-directory-name()?


Indeed...

[Function("get-directory-name")]
public static string GetDirectoryName(string path) {
string dirName = Path.GetDirectoryName(path);
return StringUtils.ConvertNullToEmpty(dirName);
}

the function is a wrapper around the equivalent .NET method.

so i take it that the only 2 options i have are:
1 - use string related functions
2 - extend nant

Daniel

On 2/14/07, Bob Archer <[EMAIL PROTECTED]> wrote:
> You may want to get the code and look at the tests for this function.
> But, I assume it returns everything in a string prior to the final
> back(forward)slash. Since it returns a string the information is
> apparently just the path name.
>
> BOb
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
> Blendea
> Sent: Wednesday, February 14, 2007 10:48 AM
> To: nant-users@lists.sourceforge.net
> Subject: [NAnt-users] bug in path::get-directory-name()?
>
> Hi all,
>
> I'm trying to use path::get-directory-name() and if  is a
> directory
> the function returns the parent directory.
>
> Is this the correct behaviour? because i think it isn't.
>
> The description of the function is rather vague:
> "Returns the directory information for the specified path string. "
>
> What directory information? size? subfolders?
>
> Thank you for your reply.
> Daniel
>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> V
> ___
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users