[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: e

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 'stag

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

2008-04-29 Thread Parrish, Ken
Scott, The following works for me: / Where buildConfiguration is either "Debug" or "Release" and solutionFileName is the full path to your solution file. Ken Parrish Go

[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:

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

2008-06-05 Thread Parrish, Ken
.. Try this: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Parrish, Ken Sent: Wednesday, June 04, 2008 7:44 PM To: nant-users@lists.sourcefo

[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 syst

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 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 all

Re: [NAnt-users] svn failed to start

2008-08-11 Thread Parrish, Ken
From: 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 usi

Re: [NAnt-users] Devstudio and msbuild

2008-08-12 Thread Parrish, Ken
Likewise. More info would be helpful. Some additional ideas: Before attempting to use Nant with MSBuild, try executing MSBuild directly from the command line. If it doesn't work directly, it's likely not going to work in Nant. Experience has shown that MSBuild is quite reliable building .NET ap

[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 ope

[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 ch

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

2008-10-14 Thread Parrish, Ken
Arnaud, My experience is that the task works well for MSBuild. No need to resort to . 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. However, if you a

[NAnt-users] MSBuild task and .NET 3.5

2008-10-20 Thread Parrish, Ken
Does anyone know how to insure that the 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 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
e there any additional OS or .NET components that need to be installed to support Nant with the .NET version 3.5 framework? Thanks, Ken Parrish Gomez, Inc. From: Bob Archer [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:35 PM To: Parrish, Ken; nant-users@lists.sourcefor

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
mpatible with SDK Version 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, 2

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

2008-10-22 Thread Parrish, Ken
ssary-kind of a heavy-handed approach to this problem. Any additional thoughts or insights would be appreciated. Ken Parrish Gomez, Inc. From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 4:03 AM To: Parrish, Ken; Julian Simpson; nant-users@lists.sourcefor

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

2008-10-22 Thread Parrish, Ken
sh Gomez, Inc. From: Bob Archer [mailto:[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

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 tas

[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 tree

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 would greatly simplify file operations which need to be applied to one or the other, yet still allow f

[NAnt-users] External reference to a

2009-01-06 Thread Parrish, Ken
I am attempting to use the feature of a 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 of the 'b

Re: [NAnt-users] External reference to a

2009-01-06 Thread Parrish, Ken
Gert, Yes, the works exactly as desired. I can define a (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-users

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

2009-01-06 Thread Parrish, Ken
extremely helpful to be able to apply or filtering to the deletion of files. In effect, that operates recursively ONLY on files, NOT on directory nodes. Ken -Original Message- From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Tuesday, January 06, 2009 4:35 PM To: Parrish, Ken; B

[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 con

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

2009-01-27 Thread Parrish, Ken
Thanks for the reference to . I have built this code into my standard extension DLL and it seems to be working as advertised. However, there is a part of the problem that I have yet to find a good solution. In the example below, I can generate a list of all the 'Path' attributes, or all the 'Sta

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 ca

[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
th: "\112.3.4.5\2" Any chance there is a way to use regular expressions in combination with filter chains as part of the directive? Thanks, Ken Parrish Gomez, Inc. -Original Message- From: Gert Driesen [mailto:gert.drie...@telenet.be] Sent: Friday, February 27, 2009 8:22 AM

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 ex

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 c

[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 element as follows: . . . . . .

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 to work on a item that represents a directory--no way, no how. I'm really baffled as to why this doesn't work. Might be time to dig into

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

2009-04-22 Thread Parrish, Ken
Scoured the documentation and discovered that 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 task. Ken -Original Message- From: Brass Tilde [mailto:brassti..

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

2009-04-22 Thread Parrish, Ken
this is useful info. Ken Parrish Gomez, Inc. -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-users] Filesets - include / exclude

2009-04-23 Thread Parrish, Ken
Question about how and are interpreted. How does Nant reconcile potentially conflicting and 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 *.txt files EXCEPT a particular te

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

2009-04-24 Thread Parrish, Ken
: 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 multiple fileset sections but it doesn't. Hav

[NAnt-users] If - else statement ...

2009-04-28 Thread Parrish, Ken
A while back I inquired about an 'else' or 'elseif' clause in an task. Presently, I use the task instead-e.g.: Just wonder if anyone has yet created a custom task with a more concise syntax (e.g. not doubly nested)? Optio

[NAnt-users] task with parameters ...

2009-05-13 Thread Parrish, Ken
Has there ever been any consideration to creating a mechanism for executing the task with a set of private, local parameters (properties) which are only available inside the called task? I'm not sure exactly how the syntax would work, but the idea would be to pass, as an argument to the task,

[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 in our build scripts. There are occasio

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

2009-06-25 Thread Parrish, Ken
ild server. From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Wednesday, June 24, 2009 10:37 AM To: Parrish, Ken; nant-users@lists.sourceforge.net Subject: RE: Embedded XML in Nant scripts ... CI Factory has a "largestring" property which allows y

[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 fo

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 task from NantContrib or the

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 f

[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 m

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

Re: [NAnt-users] Nant VS CC.NEt

2010-02-09 Thread Parrish, Ken
Chris, Similar to what other have said here, we use both Nant and CC.NET together. Generally, I let Nant to the 'heavy lifting' of configuration management. It is much more powerful and expressive that the CC.NET configuration language. Our practice is to create Nant tasks that do all of the

[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 statements that create the text for an e-mail. With the update to 0.90, the statement do not appear to emit a CR-LF at the end of each line. Any clues? Explanations for the change in behavior? | BUILD INFO Previous,

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 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: Monday

[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 or task in either library. The Java project that I

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

2010-10-05 Thread Parrish, Ken
The default behavior of the 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 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 that can

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: