Re: [NAnt-users] Help copying a folder structure

2012-05-31 Thread Chris Fouts
Thanks! From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Thursday, May 31, 2012 9:44 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: Help copying a folder structure If you want to go FROM src TO dest, it looks like you have your code backwards... shouldn't it be: copy

[NAnt-users] Help copying a folder structure

2012-05-30 Thread Chris Fouts
I looked at this http://nant.sourceforge.net/nightly/latest/help/tasks/copy.html, and googled some. I want to copy files from ${srcDir} to ${destDir} and preserve the directory struncture. I tried this, but the directory structure is NOT preserved in ${destDir}. Any clues? copy

Re: [NAnt-users] Help copying a folder structure

2012-05-30 Thread Chris Fouts
This way... copy todir=${srcDir} fileset basedir=${destDir} include name=**\* / /fileset /copy From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Wednesday, May 30, 2012 3:13 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] Help copying a folder structure I

[NAnt-users] Coordinating file access

2012-04-24 Thread Chris Fouts
I'm trying to set up N test machines to read/modify/write a file on yet another machine (build machine). Any Nant tips and tricks to coordinate such file access so only one test machine accesses the file? For example, does Nant have file locks/unlock tasks? -chris ***This e-mail message is

Re: [NAnt-users] Coordinating file access

2012-04-24 Thread Chris Fouts
I ended up copying the file to a file.lck (added a .lck file extension), and check for the existence of this file extension. -chris From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Tuesday, April 24, 2012 3:24 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] Coordinating

Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Chris Fouts
That's all I want to do, find a node and update it. From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Friday, April 20, 2012 9:36 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: xmlpeek and multiple nodes For more than a simple find a node and update it I would recommend you

Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Chris Fouts
If I can find out how to loop through them all, I can do the rest. From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Friday, April 20, 2012 9:54 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: xmlpeek and multiple nodes But, is there something unique in the node that you want

Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Chris Fouts
So no canned support for this? -chris From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Friday, April 20, 2012 9:59 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: xmlpeek and multiple nodes In other words, if you can't get to a specific node with an XPath expression you

[NAnt-users] String to int

2012-04-20 Thread Chris Fouts
I'm using the convert::to-int function to convert a string property into an int so I can increment it. However I get this (albeit just) warning. Function convert::to-int is deprecated. Use type-specific conversion functions instead. I don't see a string type-specific conversion here.

Re: [NAnt-users] String to int

2012-04-20 Thread Chris Fouts
Sorry, I see it now, it's int::parse(SomeString) From: Chris Fouts Sent: Friday, April 20, 2012 10:53 AM To: nant-users@lists.sourceforge.net Subject: String to int I'm using the convert::to-int function to convert a string property into an int so I can increment it. However I get this (albeit

Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Chris Fouts
Silly me. This works for xmlpeek, but I can't xmlpoke on a nodeindex. Duh Backtrack -chris From: Chris Fouts Sent: Friday, April 20, 2012 11:18 AM To: nant-users@lists.sourceforge.net Subject: RE: xmlpeek and multiple nodes Ok, here's my workaround to parse this xml file, and it works

Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

2012-03-19 Thread Chris Fouts
? -chris From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Wednesday, February 29, 2012 3:15 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition? Thanks Adam and Bob. From: Adam Bruss [mailto:abr...@awrcorp.com] Sent

Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

2012-03-19 Thread Chris Fouts
CORRECTLY by evaluating resultproperty values earlier in script. From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Monday, March 19, 2012 5:50 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition? I thought I had

[NAnt-users] Nant property passed to CC.NET for pass/fail condition?

2012-02-29 Thread Chris Fouts
What is the nant property that is set for CC.NET to report a pass/fail condition? I assume I can modify this property? Is it nant.onfailure? Thanks! -chris ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If

Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

2012-02-29 Thread Chris Fouts
if either project1_ok or project2_ok is false, I want ccnet to report a failure. Make sense? -chris From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Wednesday, February 29, 2012 11:51 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: Nant property passed to CC.NET for pass

Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

2012-02-29 Thread Chris Fouts
Senior Development Engineer AWR Corporation 11520 N. Port Washington Rd., Suite 201 Mequon, WI 53092 USA P: 1.262.240.0291 x104 F: 1.262.240.0294 E: abr...@awrcorp.com W: http://www.awrcorp.comhttp://www.awrcorp.com/ From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Wednesday, February

[NAnt-users] How to suppress exec errors?

2012-02-23 Thread Chris Fouts
One of the things I do in my script is to disconnect a network drive, regardless is it's connected or not, and of course if it's not already connected I get an error. I ignore the error via failonerror=false, but I want to go one step further and suppress the error generated. ***This e-mail

Re: [NAnt-users] How to suppress exec errors?

2012-02-23 Thread Chris Fouts
Ok thanks! From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Thursday, February 23, 2012 9:46 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: How to suppress exec errors? I think the best/only way you can do this is to create a batch file to do the disconnect and have

[NAnt-users] non-readonly properties

2012-02-22 Thread Chris Fouts
I have the following properties defined in mynant.build file !-- Use these Bools for enable either Project1 and/or Project2 builds -- property name=enable_project1_build value=true readonly=false / property name=enable_project2_build value=true

Re: [NAnt-users] non-readonly properties

2012-02-22 Thread Chris Fouts
Thanks, I was actually setting the arguments in CCNET, via buildArgs From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Wednesday, February 22, 2012 1:25 PM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: non-readonly properties Properties set on the command line are always read

[NAnt-users] Help with resultproperty please

2012-02-21 Thread Chris Fouts
I'm aware of this feature target name=buildmodule exec commandline=buildmodule.bat Failonerror=false resultproperty=module_ok / /target However, I want to do this... target name=buildmodule1 exec commandline=buildmodule1.bat Failonerror=false resultproperty=module_ok / /target target

Re: [NAnt-users] How to setup two projects with a subset of common files?

2012-01-17 Thread Chris Fouts
Thanks! From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Friday, January 06, 2012 10:17 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] How to setup two projects with a subset of common files? Don't you want a build of common to trigger a build of Project1

[NAnt-users] How to setup two projects with a subset of common files?

2012-01-05 Thread Chris Fouts
I posted this in the ccnet-users Google group, but I thought I'd post this too hoping I'm not alone in using ccnet+nant environment, and not the first one to try this. I use CC.NET v1.6.7981.1 and Nant v0.91. I trigger the builds via CC.NET but do the bulk of the work in Nant - no surprise

Re: [NAnt-users] How to setup two projects with a subset of common files?

2012-01-05 Thread Chris Fouts
Thanks to all the replies. I just started looking at queues indeed. From: Brendan CM [mailto:veri...@gmail.com] Sent: Thursday, January 05, 2012 1:36 PM To: Chris Fouts Cc: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] How to setup two projects with a subset of common files

Re: [NAnt-users] How to setup two projects with a subset of common files?

2012-01-05 Thread Chris Fouts
Will this show BOTH projects in the ccnet web dashboard? From: Philip Sayers [mailto:p...@cds-am.net] Sent: Thursday, January 05, 2012 1:36 PM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] How to setup two projects with a subset of common files? Easiest way to get

Re: [NAnt-users] How to setup two projects with a subset of common files?

2012-01-05 Thread Chris Fouts
I found the answer to my own question, and it's Yes. From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Thursday, January 05, 2012 2:08 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] How to setup two projects with a subset of common files? Will this show BOTH projects

Re: [NAnt-users] Help with testing strings

2011-11-03 Thread Chris Fouts
Thanks. I tried this yesterday but put the and {} in the wrong place. Duh on me. From: Christopher Brandt [mailto:xtopher.bra...@gmail.com] Sent: Wednesday, November 02, 2011 5:26 PM To: Chris Fouts Cc: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Help with testing strings You'd

Re: [NAnt-users] Need help with a NAnt internal error

2011-11-03 Thread Chris Fouts
Can you mimic how your GUIs (run button) call the Nant processes, and start off Nant from a command line window the way they do? Or if you have the code that starts the console window, put a cin ; statement, which will freeze the window until you hit CR in it. -chris From: Macdiarmid, James

[NAnt-users] Help with testing strings

2011-11-02 Thread Chris Fouts
I'm using ccnet and Nant, not a unique situation. How can I test the passed-in CCNetBuildModification string in Nant so I can do the following pseudo-code If ${CCNetBuildModification} == ForceBuild property name=someTarget value=someTarget1 / Else property name=someTarget

Re: [NAnt-users] Help with testing strings

2011-11-02 Thread Chris Fouts
Sorry, CCNetBuildCondition --- I'm using ccnet and Nant, not a unique situation. How can I test the passed-in CCNetBuildModification string in Nant so I can do the following pseudo-code If ${CCNetBuildModification} == ForceBuild property

Re: [NAnt-users] Nant hookup up with CxxTest or CppUnit

2011-10-05 Thread Chris Fouts
: Nant hookup up with CxxTest or CppUnit From: Adam Bruss Sent: Friday, September 30, 2011 3:52 PM To: 'Chris Fouts' Subject: RE: Nant hookup up with CxxTest or CppUnit We have nant run our executable with a certain flag which tells it to run the unittests and write the results to an xml file

Re: [NAnt-users] Nant hookup up with CxxTest or CppUnit

2011-10-05 Thread Chris Fouts
Thanks! I'm using CxxTest, not CppUnit, but your example will work since I have a *.exe file to run. I'll have to look further what resultproperty and how I can fit it in my environment. -chris From: Adam Bruss [mailto:abr...@awrcorp.com] Sent: 2011-10-05 17:14 To: Chris Fouts; nant-users

[NAnt-users] Nant hookup up with CxxTest or CppUnit

2011-09-30 Thread Chris Fouts
Can someone please point me to an example how Nant can start a test suite using CxxTest or CppUnit? I just want to know how Nant gets its feedback from those systems. ...or any testing suite really. -chris ***This e-mail message is intended only for the above named recipient(s) and may

Re: [NAnt-users] Good Nant book for beginner

2011-08-31 Thread Chris Fouts
Expert .NET Delivery (Using Nant and CruiseControl.NET) by Marc Holmes From: Niranjan Bansal [mailto:bansalniran...@gmail.com] Sent: 2011-08-31 12:22 To: Scott Pennington Cc: nant-users@lists.sourceforge.net Subject: [NAnt-users] Good Nant book for beginner Hi, Can anyone recommend good

[NAnt-users] Calling a dependency twice?

2011-06-21 Thread Chris Fouts
Nant version 0.91, Build 0.91.3081.0 For some reason, I'm not able to call a depends target twice. Here's what I mean. Say I have target name=all Depends=TARGET1, target2, TARGET1, target3 --! Do something -- /target Nant executes TARGET1 before target2, and I expect

Re: [NAnt-users] Calling a dependency twice?

2011-06-21 Thread Chris Fouts
) A target gets executed only once, even when more than one target depends on it Brian Wilson Department of Human Resources Email: brian.wil...@dhr.alabama.govmailto:brian.wil...@dhr.alabama.gov From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Tuesday, June 21, 2011 9:58 AM To: nant-users

Re: [NAnt-users] Calling a dependency twice?

2011-06-21 Thread Chris Fouts
want to use the call task. call target=Target1/ call target=Target2/ call target=Target1/ call target=Target3/ Brian Wilson Department of Human Resources Email: brian.wil...@dhr.alabama.govmailto:brian.wil...@dhr.alabama.gov From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Tuesday

Re: [NAnt-users] mail question

2011-06-16 Thread Chris Fouts
To: Chris Fouts Subject: RE: mail question I apologize, I was assuming you were using exchange. Please disregard. Brian Wilson Department of Human Resources Email: brian.wil...@dhr.alabama.govmailto:brian.wil...@dhr.alabama.gov From: Wilson, Brian Sent: Thursday, June 16, 2011 10:51 AM To: 'Chris

Re: [NAnt-users] mail question

2011-06-16 Thread Chris Fouts
Thanks for checking. I'll have to do it via CCNET then, since its publisher target accepts credentials. -chris From: Wilson, Brian [mailto:brian.wil...@dhr.alabama.gov] Sent: Thursday, June 16, 2011 1:03 PM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: mail question It appears

Re: [NAnt-users] Solution format of file is not supported.

2011-05-26 Thread Chris Fouts
The solution target is buggy, and I've never been able to make it work. I just use the devenv.com command line. property name=devenv value=C:\Folder_with_devenv\devenv.com target name=SimController description=Building SimController

Re: [NAnt-users] Solution format of file is not supported.

2011-05-26 Thread Chris Fouts
The installation instruction for nantcontrib say to copy the nantcontrib\bin files in the nant\bin folder. Did you do that? -chris From: Jed Padilla [mailto:jpadi...@flclerks.com] Sent: Thursday, May 26, 2011 3:49 PM To: 'Brass Tilde' Cc: nant-users@lists.sourceforge.net Subject: Re:

Re: [NAnt-users] Solution format of file is not supported.

2011-05-26 Thread Chris Fouts
4:01 PM To: Chris Fouts; 'Brass Tilde' Cc: nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] Solution format of file is not supported. Somehow I managed to download NAnt .85 and not NAntContrib (I wondered why it looked exactly like the other binary I had, size and all). Now I am

[NAnt-users] nant -projecthelp question

2011-05-20 Thread Chris Fouts
When running the nant -projecthelp command, the docs say that targets with descriptions are grouped as main targets, while targets without descriptions are grouped as sub targets. However, I have targets with description on them that are included in the sub targets instead of main targets. Any

[NAnt-users] Is there a template/example for this setup?

2011-05-13 Thread Chris Fouts
This is a common architecture so I'm hoping someone's done this before. Say I have a Windows project with 2 components, each component in its on directory, like so: ProjectA Component1 File1.h File1.cpp File1.sln Component2 File2.h File2.cpp File2.sln

Re: [NAnt-users] Is there a template/example for this setup?

2011-05-13 Thread Chris Fouts
. -chris From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Friday, May 13, 2011 9:37 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: Is there a template/example for this setup? CI Factory's scripts do this. IIRC he creates a text file with any changed files to determine

Re: [NAnt-users] Is there a template/example for this setup?

2011-05-13 Thread Chris Fouts
at the regex element and it did not seem to support this. -chris From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Friday, May 13, 2011 12:41 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Is there a template/example for this setup? Thanks, but I don't have time to delve

Re: [NAnt-users] Is there a template/example for this setup?

2011-05-13 Thread Chris Fouts
Ah, I didn't know about uptodate, thanks!!! -chris From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Friday, May 13, 2011 2:38 PM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: Is there a template/example for this setup? Its really as simple as comparing the current binary

Re: [NAnt-users] (no subject)

2011-05-11 Thread Chris Fouts
No ccnet does not send a build failed email when nant calls fail; hence I posted the question. I'm not sure I set this part up correctly. -Original Message- From: Adam Bruss [mailto:abr...@awrcorp.com] Sent: Tuesday, May 10, 2011 10:35 PM To: Chris Fouts; nant-users

Re: [NAnt-users] (no subject)

2011-05-11 Thread Chris Fouts
group name=BuildMeister / group name=Bradley_A3_PE / group name=Bradley_A3_Developers / /groups /email /publishers -Original Message- From: Chris Fouts

[NAnt-users] (no subject)

2011-05-10 Thread Chris Fouts
I've started using ccnet with NAnt, where my ccnet script calls a NAnt script to do the actual build. However, I want ccnet to send an e-mail, not nant, when a script fails. I have a publisher ccnet block that I want executed that sends the e-mail. -chris ***This e-mail message is intended

Re: [NAnt-users] (no subject)

2011-05-10 Thread Chris Fouts
...@awrcorp.com] Sent: Tuesday, May 10, 2011 8:02 PM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] (no subject) Here’s a ccnet example of a publisher block that sends mail. publishers email from=foo...@fubar.com mailhost=smtp.foobar.com includeDetails=TRUE

Re: [NAnt-users] Help recursively setting readonly attribute

2011-05-05 Thread Chris Fouts
05, 2011 9:29 AM To: Chris Fouts Subject: RE: Help recursively setting readonly attribute I tried all kinds of options, for the attrib tag and could not get it to work. I can use a fileset on other tags, like delete and copy, but it does not seem to work with attrib. The only other option I

Re: [NAnt-users] Help recursively setting readonly attribute

2011-05-05 Thread Chris Fouts
I did NOT want the files to be read only, hence false. I should've said I wanted to set the read only attribute to false. -chris From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Thursday, May 05, 2011 9:59 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: Help recursively

[NAnt-users] Help recursively setting readonly attribute

2011-05-04 Thread Chris Fouts
I thought I had this, but apparently not, since I can't overwrite files in them. I run as Administrator so I have permission to do this. I want to set the read-only attribute for all files and subdirs under the two directories target name=removeReadOnly description=Remove

[NAnt-users] Help with exception

2011-05-03 Thread Chris Fouts
I just installed NAnt on my XP-based company laptop. When I run it I get the following. Any help? I have v0.91-alpah2 (latest from Sourceforge). Unhandled Exception: System.TypeInitializationException: The type initializer fo r 'NAnt.Console.ConsoleStub' threw an exception. ---

Re: [NAnt-users] Help with exception

2011-05-03 Thread Chris Fouts
I have MS .NET framework 4.0 From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Tuesday, May 03, 2011 12:00 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] Help with exception I just installed NAnt on my XP-based company laptop. When I run it I get the following. Any help

Re: [NAnt-users] Help with exception

2011-05-03 Thread Chris Fouts
: Tuesday, May 03, 2011 12:27 PM To: Chris Fouts Cc: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Help with exception Known issue unfortunately. It's related to the new security model in .net 4, which I have been unable to reproduce on three different machines. This is the first

Re: [NAnt-users] Help with exception

2011-05-03 Thread Chris Fouts
Unlocking the zip file did the trick, even unpacking it in C:\Program Files\NAnt. Thanks all! -chris From: Daniel Nauck [mailto:daniel.na...@gmail.com] Sent: Tuesday, May 03, 2011 1:33 PM To: Chris Fouts Cc: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Help with exception Try

[NAnt-users] Help with exec

2011-04-29 Thread Chris Fouts
How can I as part of my arg in an exec? For example.. exec program=foo.exe commandline='-x arg value=c:\somefolder -option M/ /exec IOW, I want to execute the following command C:\foo.exe -x c:\somefolder -option M -chris ***This e-mail message is intended only for the above named