[NAnt-users] New to list - How best to create if-else-endif construct ...

2008-01-23 Thread Parrish, Ken
I'm new to this list, so am not sure if this question has been posted frequently or recently. I'm often frustrated when I need to create an if-else-endif construct in a Nant script. For example: target name=unitTest description=runs nunit tests on the project

Re: [NAnt-users] VS2005 Web Projects; still trying

2008-04-17 Thread Parrish, Ken
Tony, I have done quite extensive work with VS2005 web-based projects and Nant--have tried a large variety of combinations. This is what seems to work the best for us: 1) Add to your web solution a web deploy project and send the output to a 'staging' directory. A web deploy project will

Re: [NAnt-users] MS Visual Studio 2005 Solution files and msbuildcommand

2008-04-29 Thread Parrish, Ken
Scott, The following works for me: msbuild project=${solutionFileName} target=build arg value=/p:Configuration=${buildConfiguration} / /msbuild/ Where buildConfiguration is

[NAnt-users] Property values as a property name ...

2008-06-04 Thread Parrish, Ken
Is there any way in Nant to use the value of one property as the name of another property? Here is a sketch of what I want to do, but this will not parse/compile: property name=destination value=PROD/ property name=PRODDirectories

Re: [NAnt-users] Property values as a property name ...

2008-06-05 Thread Parrish, Ken
=String property=deployDir in=${destDirs} delim=, echo message=deployDir = ${deployDir} / /foreach /target From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Parrish, Ken Sent: Wednesday, June 04, 2008 7:44 PM To: nant-users@lists.sourceforge.net

[NAnt-users] Directory difference tool ...

2008-07-31 Thread Parrish, Ken
I am building a configuration management system using Nant as the scripting foundation. I am looking for a tool which will compare two directories and generate a list of files that have been added, deleted or modified. For directories which are under source code control, I can use the SCC

Re: [NAnt-users] svn failed to start

2008-08-11 Thread Parrish, Ken
Bob, I don't know if this is the answer you are looking forward. I tried may time to get the svn Nant command to work reliably, but had never ending problems with errors similar to yours, and mostly, conflicts between the various Uri and path parameters. Ultimately I gave up and have recast

Re: [NAnt-users] svn failed to start

2008-08-11 Thread Parrish, Ken
: Bob Archer [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 10:15 AM To: Parrish, Ken; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] svn failed to start I guess I should have been more specific here, I am using the exec tag: exec program=svn workingdir

[NAnt-users] Setting default logger ...

2008-08-13 Thread Parrish, Ken
I am using Nant with CruiseControl and get the error: Log does not contain any Xml output from NAnt. Please make sure that NAnt is executed using the XmlLogger (use the argument: -logger:NAnt.Core.XmlLogger). I tried setting the default logger in Nant.exe.config as such:

Re: [NAnt-users] how to publish or output to a directory withmsbuildtask

2008-09-04 Thread Parrish, Ken
Have you created a Web Deployment Project for your web site? The most effective method for deploying web site project via Nant is to first create a web deployment project, set the output path in that project file. Then after you have built your project, you can use all the other Nant tasks to

[NAnt-users] Directory different task or tool ...

2008-09-04 Thread Parrish, Ken
Does anyone know if there is a directory differencing task available for Nant? I have tried several external directory difference tools, but so far, none have the level of control that a typical Nant command has such as file and directory exclusions/inclusions. I need such a tool to compute

Re: [NAnt-users] Build VS2008 with Nant, Solution task or MsBuild

2008-10-14 Thread Parrish, Ken
Arnaud, My experience is that the msbuild task works well for MSBuild. No need to resort to exec. Whether it runs the 2.0 or 3.5 version of MSBuild depends on your global path settings. I have found that the 3.5 version of MSBuild is fully backward compatible with the 2.0 version.

[NAnt-users] MSBuild task and .NET 3.5

2008-10-20 Thread Parrish, Ken
Does anyone know how to insure that the msbuild task targets the version of MSBuild in the .NET Version 3.5 framework directory? Is it necessary to set the system path or is there a way to direct the msbuild task to use a particular version of MSBuild? Thanks, Ken Parrish Gomez, Inc.

Re: [NAnt-users] MSBuild task and .NET 3.5

2008-10-21 Thread Parrish, Ken
: Parrish, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:06 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] MSBuild task and .NET 3.5 Does anyone know how to insure that the msbuild task targets the version of MSBuild in the .NET Version 3.5 framework directory

Re: [NAnt-users] MSBuild task and .NET 3.5

2008-10-21 Thread Parrish, Ken
Where or how does Nant get the value, used in Nant.exe.config, for 'sdkInstallRoot' and 'installroot' ? Do these map to environment variables? Are they required? Thanks, Ken Parrish -Original Message- From: Brass Tilde [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 2:30 PM

Re: [NAnt-users] MSBuild task and .NET 3.5

2008-10-21 Thread Parrish, Ken
6.1? I would think that this problem manifests itself 'the other way 'round'. Any other ideas or clues would be greatly appreciated. Ken Parrish Gomez, Inc. From: Julian Simpson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 4:20 PM To: Parrish, Ken Subject: Re

Re: [NAnt-users] MSBuild task and .NET 3.5

2008-10-22 Thread Parrish, Ken
:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 4:48 PM To: Parrish, Ken; Gert Driesen; Julian Simpson; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] MSBuild task and .NET 3.5 Sounds like a bug in Nant to me. I think I asked but you never answered... can you build the project using

Re: [NAnt-users] Beginner Questions

2008-12-09 Thread Parrish, Ken
LLCard: Bob's recommendation to get the Nant book is excellent advice. Some thoughts on a few issues that you mention: I have created at Gomez an extensive build and configuration management system using CruiseControl.NET and Nant. This system makes widespread use of reusable Nant files and

[NAnt-users] Delete files but preserve directory tree

2009-01-06 Thread Parrish, Ken
I am trying to write a Nant task which, given the pathname of a directory, will recursively remove all the files at all levels in the directory tree, but will NOT delete any of the directories themselves. This is needed so that we can 'purge' a deployment web site, but preserve the directory

Re: [NAnt-users] Delete files but preserve directory tree

2009-01-06 Thread Parrish, Ken
Nant Users, Thanks for your feedback on this. I've replied to this list a couple of time, but my posting keep getting bounced. The addition of a filesOnly and/or directoriesOnly attribute to a fileset would greatly simplify file operations which need to be applied to one or the other, yet still

[NAnt-users] External reference to a fileset

2009-01-06 Thread Parrish, Ken
I am attempting to use the feature of a fileset which allows for an external reference to a pre-defined fileset. This would be most useful in my application in cases where a complicated include/exclude filter needs to be applied to several file and directory operations. However, the behavior

Re: [NAnt-users] External reference to a fileset

2009-01-06 Thread Parrish, Ken
Gert, Yes, the patternset works exactly as desired. I can define a patternset (in this case with a dozen entries) and reuse it throughout my set of scripts. Thanks. Ken From: Gert Driesen [mailto:gert.drie...@telenet.be] Sent: Tuesday, January 06, 2009 4:18 PM To: Parrish, Ken; nant

Re: [NAnt-users] Delete files but preserve directory tree

2009-01-06 Thread Parrish, Ken
To: Parrish, Ken; Brass Tilde; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] Delete files but preserve directory tree Rather than using *.* use * ... that will match any filename with or without an extension. I guess I don't understand why you can just exclude your config file names

[NAnt-users] Navigating XML documents ...

2009-01-27 Thread Parrish, Ken
Sometime back there were several postings regarding the problem of navigating through a collection of XML nodes in an XML document. I have a Nant task that needs to fetch a collection of XML nodes from a file and iterate over the collection and take action against each node. An example of the

Re: [NAnt-users] Navigating XML documents ...

2009-01-30 Thread Parrish, Ken
Mike, Thanks so much for your feedback. I used your suggestion with a little wrinkle. Instead of creating unique names for each node in the Xml file, I gave each node an attribute with a unique ID. That way, the file can still be parsed by other Xml parsers without confusion. This is what I

[NAnt-users] Setting version numbers in .RC files ...

2009-02-26 Thread Parrish, Ken
I'm looking for a task or code snippet for setting the version numbers in C++ project .RC files which get compiled into .EXE and .DLL. It's been while, but I seem to recall a discussion about this some months ago. Has anyone tackled this problem as yet? Ken Parrish Gomez, Inc.

Re: [NAnt-users] Setting version numbers in .RC files ...

2009-03-05 Thread Parrish, Ken
in combination with filter chains as part of the replacestring directive? Thanks, Ken Parrish Gomez, Inc. -Original Message- From: Gert Driesen [mailto:gert.drie...@telenet.be] Sent: Friday, February 27, 2009 8:22 AM To: Parrish, Ken; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users

Re: [NAnt-users] XML Validator

2009-04-20 Thread Parrish, Ken
Brass, One option that you might pursue is creating a simple Console application wrapper around the XmlReader class in the .NET class library. This object is capable of validating an XML document or fragment against one or more schema URLs. The documentation for this class contains several

Re: [NAnt-users] XML Validator

2009-04-21 Thread Parrish, Ken
Got it. Forwarded my original reply to Alon. KP -Original Message- From: Brass Tilde [mailto:brassti...@gmail.com] Sent: Monday, April 20, 2009 10:59 AM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] XML Validator Brass, One option that you might pursue Just to

[NAnt-users] Delete not removing directories ...

2009-04-22 Thread Parrish, Ken
I am trying to create a simple task that will purge 'garbage' out of a directory tree as specified in a fileset element as follows: . . . property name= PurgeDeployDirectory_dir value=c:/Gomez/TestPurge/wwwroot// call target= PurgeDeployDirectory/ . . . target

Re: [NAnt-users] Delete not removing directories ...

2009-04-22 Thread Parrish, Ken
Bob, Brass, et. al., No luck so far. I tried all permutations that both you and Bob suggested, plus a variety of others. Bottom line is that I can't get delete to work on a filesetinclude item that represents a directory--no way, no how. I'm really baffled as to why this doesn't work.

[NAnt-users] SOLVED: RE: Delete not removing directories ...

2009-04-22 Thread Parrish, Ken
Scoured the documentation and discovered that delete will not act on ReadOnly files and directories. Marked the entire directory tree as Read/Write. Now everything is working as expected. Next up, an investigation into the attrib task. Ken -Original Message- From: Brass Tilde

Re: [NAnt-users] Delete not removing directories ...

2009-04-22 Thread Parrish, Ken
patternset refid=deploySiteCleanupSet / /fileset /delete /target -Original Message- From: Parrish, Ken [mailto:kparr...@gomez.com] Sent: Wednesday, April 22, 2009 3:45 PM To: nant-users@lists.sourceforge.net Subject: [NAnt

[NAnt-users] Filesets - include / exclude

2009-04-23 Thread Parrish, Ken
Question about how fileset and patternset are interpreted. How does Nant reconcile potentially conflicting include and exclude tags. During a copy operation, I would like to exclude all text (.txt) files except those explicitly listed. How might I do this? Let's say, I want to exclude all

[NAnt-users] FW: Filesets - include / exclude

2009-04-24 Thread Parrish, Ken
...@amsi.com] Sent: Friday, April 24, 2009 10:03 AM To: Parrish, Ken; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] Filesets - include / exclude Thanks for the info Ken. That is how I do it too. I just use multiple copy tasks. It always seemed to me that they copy task should support

[NAnt-users] Embedded XML in Nant scripts ...

2009-06-24 Thread Parrish, Ken
I have a need to embed 'extra' information in a Nant script. We've developed a configuration management database and have various crawlers and update engines, one of which parses existing Nant scripts collecting configuration management data embedded as properties in our build scripts. There

[NAnt-users] FW: Embedded XML in Nant scripts ...

2009-06-25 Thread Parrish, Ken
=false ![CDATA[call target=SourceControl.CleanGetOfThirdPartyDirectory / call target=SourceControl.CleanGetOfProductDirectory /]] /value /largeproperty From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Wednesday, June 24, 2009 10:37 AM To: Parrish, Ken

[NAnt-users] LoaderException ...

2009-06-26 Thread Parrish, Ken
I am having trouble getting Nant to load some custom designed tasks. I get the following message: [loadtasks] Failure scanning C:\Program Files\Nant\bin\GPNCustomExtensions. Tasks.dll for extensions. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for

Re: [NAnt-users] Building a WPF project in Nant

2009-07-20 Thread Parrish, Ken
Ankit, I don't build WPF projects, but I do build all manner of other complicated .NET 3.5 projects such as WCF, Entity Framework, WorkFlow--some with mixed .NET versions--the works. But, the only practical, reliable way to do this is to call MSBuild. Either the msbuild task from NantContrib

Re: [NAnt-users] creating a diff of two paths...

2009-07-31 Thread Parrish, Ken
Bob, This basic problem was causing us fits for a long time. I scoured the web for directory difference tools that could help. There are a dozen or more tools out there, but none really works the way you want in a source code and/or deployment environment (believe it or not) and can be run

[NAnt-users] XML DOM tasks ...

2009-09-29 Thread Parrish, Ken
Several months ago, I seem to recall coming across some Nant extension tasks for manipulating XML files in a similar manner as the XML DOM library in .NET . Basically, they were wrappers for XmlDocument, XmlElement, XmlNode and XmlAttribute. Does anyone know if or where such a library can be

[NAnt-users] Input prompting ...

2009-11-03 Thread Parrish, Ken
Nant Users, Is there a task that can be used to prompt a user for input of a property? I'd like to design some tasks which will prompt the user for input of a property if the property was not specified on the command line. I looked in both Nant and NantContrib and didn't see anything. Am I

Re: [NAnt-users] Input prompting ...

2009-11-03 Thread Parrish, Ken
Mike, This looks like it will work just fine. I have a custom Nant extensions project and will add this in that DLL. Thanks, Ken Parrish Gomez, Inc. From: Michael Pento [mailto:mpe...@metratech.com] Sent: Tuesday, November 03, 2009 12:52 PM To: Parrish, Ken; nant-users@lists.sourceforge.net

[NAnt-users] Upate to 0.90, missing CR-LF ...

2010-07-12 Thread Parrish, Ken
I just updated to Nant 0.90. I have a script with a bunch of echo statements that create the text for an e-mail. With the update to 0.90, the echo statement do not appear to emit a CR-LF at the end of each line. Any clues? Explanations for the change in behavior? echo

Re: [NAnt-users] Upate to 0.90, missing CR-LF ...

2010-07-12 Thread Parrish, Ken
I found documentation indicating that since 0.86, newlines are no longer automatically emitted when echo is directed to a file. How do I emit a newline into a file? This is Windows, so I need a CR/LF combination. Thanks, Ken Parrish From: Parrish, Ken [mailto:kparr...@gomez.com] Sent

[NAnt-users] Building Java apps from a Nant script ....

2010-09-29 Thread Parrish, Ken
It looks like I am going to have to integrate some Java project builds into an existing Nant based configuration management system. I looked at the Task Reference for Nant and NantContrib, and was surprised not to find direct support for an Ant or Java task in either library. The Java project

[NAnt-users] Copy task and file write time stamp ...

2010-10-05 Thread Parrish, Ken
The default behavior of the copy task is that file write times for the source file are reflected at the destination. Is there a way to change the behavior of the copy task such that the last file write time for the destination file is set to the current time? Is there a separate task in Nant

Re: [NAnt-users] Copy task and file write time stamp ...

2010-10-05 Thread Parrish, Ken
Do ... didn't see that in the task list. Thanks, Ken From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Tuesday, October 05, 2010 3:56 PM To: Parrish, Ken; NAnt-users@lists.sourceforge.net Subject: RE: Copy task and file write time stamp ... touch? From: Parrish, Ken [mailto:kparr