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:
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
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
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
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,
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
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,
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
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
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
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
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
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
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
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,
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
: 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
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
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:
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..
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
I am trying to create a simple task that will purge 'garbage' out of a
directory tree as specified in a element as follows:
. . .
. . .
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
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
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
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.
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-
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
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
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
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:
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
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
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
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
..
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
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:
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
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
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
54 matches
Mail list logo