: Wednesday, April 08, 2009 11:42 AM
To: Steve Kapinos; Nathan Franzen; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] properties in functions
Actually, in the original posting, version-info-script was a property
that was initialised with the name of the file in question, rather than
bei
Don't use ${ } inside an existing expression. You use it once to say
this in an expression.. from there Nant knows how to find the keywords,
etc
So instead of
Use
Assuming 'version-info-script' is the name of the file you are looking
for. Strings put in ' ' , function names and prop
Using the unzip task in .86, even with verbose="false" the unzip command
is echoing one line per file when nant is called by my teamcity agent.
This is resulting in tons of extra fluff in our logs. How can I avoid
having unzip outputting so much logging?
--
test.bat failed itself with error code 1
remember the environment that the bat file is executing under as it regards to
paths, etc.
-Original Message-
From: Zachary B. Wheeler [mailto:zwhee...@sddmtech.com]
Sent: Fri 2/13/2009 5:44 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt
Be aware that psexec has many limitations when used combined with other
tools. For instance, while things worked mostly fine from nant, I had
massive problems with it being used by nant called from java (from my
build agents).
I had to resort to using WMI and visual basic in many cases to work
I don't undertand why this isn't just taking in parameters and using them as
variables in the build file. Do conditional checks if need be to block out
parts not needed, etc.
My environment is setup so the core of the task is as modular as possible.. and
just have different targets do differen
is using wrong syntax.. that's why you are not getting the function
substitution you are expecting
should be like value="${version::get_major(version)}"
since it's inside the ${ } already, it will lookup unquoted text as variables
or functions. If you wanted to use a string in there, use a
Is version defined in a properties file?
I believe you can use the 'overwrite' argument set to true as well.
I set default values via user.properties file, and change them on the fly by
either using the command line option or setting them in the script. I think it
only generates a warning, n
Teamcity is great.. no need for alternatives J
With a CI environment, you can also use projects to update servers just
as a user would if desired. Or as others mentioned, robocopy is part of
Windows Resource Kit that allows automated file copy.
If its part of a build system, you may not wa
Bouncing ideas here to hopefully save some time.
I want to do a conditional check before executing a task in my nant
script. But the condition can not be done from nant functions/tasks so
I have a vbs script that does the check. In my previous work, it was
easy to kill the script with an error n
My original vbs was intended to be more generic, that's why I didn't
want to embed it in the vbs to start (and I wanted to be more cross
platform) but I've modified it now to wait for the specific file to
exist. Note this uses Wscript as I call it with cscript.exe to make it
all nant friendly
Sam
lto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2008 8:30 AM
To: Steve Kapinos; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Any way to do a while loop?
Steve,
You can spawn the installation, and then wait for it to finish.
For example:
...
Note:
You
Part of my script must wait until an installation completes, but this
installation spawns off into another process, so the exec task does not
wait for it to complete before finishing and the nant script continues
to march on.
Right now for a quick hack, I have a sleep timer in the script to simply
You need to use the nodeindex parameter of xmlpeek to control which instance
you are returning. However, I’m not quite sure how you’d find out how many
instances there are to loop through dynamically. Maybe some if condition on
the returned value and a loop of sorts
-Steve
From: Fabio
course.. all of this is even easier if you aren't on a windows
platform :)
-Steve
-Original Message-
From: Bob Archer [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 10:58 AM
To: Steve Kapinos; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] summary of nant lesso
t step.
-Steve
-Original Message-
From: Bob Archer [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 9:48 AM
To: Steve Kapinos; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] summary of nant lessons learned, and some
examples
Nice info. Thanks.
Although, so you not use the Insta
After finally getting around a looking at the results.. after a few
projects using nant, including what were for me, some serious stumbling
blocks.. I've pulled together examples from my scripts and some 'duh'
moments and put them all together hoping future users will find them
when they are coming
Just the framework is enough
From: Bob Archer [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2008 4:42 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] .Net SDK 3.5
Does anyone know... do I need to install the "Windows SDK for Windows
Server 2008 and .Net Framework 3.5"
and itself.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roebuck,
Alex
Sent: Monday, September 15, 2008 8:41 AM
To: Steve Kapinos; nant
Subject: Re: [NAnt-users] Adding a redirect to null in exec?
Hi Steve,
Use the escape sequence > in place of &
When doing an exec task, how can I add a > nul at the end of the
command?
Trying to work around issues with psexec, they suggest piping the output
to Null. But I can't seem to modify my task to get the desired effect.
The command I'm trying to incorporate is simply
Psexec.exe -accepteula \\10.0
ways the last line.
Result Code is ${deploySetupResultCode}
-Original Message-
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 14, 2008 4:15 AM
To: S
ation...can you just make
your own custom task to do these operations?
- Original Message
From: Steve Kapinos <[EMAIL PROTECTED]>
To: nant-users@lists.sourceforge.net
Sent: Saturday, September 13, 2008 11:23:07 PM
Subject: Re: [NAnt-users] can you nest functions? problems with data
subtract 3 from it?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Kapinos
Sent: Saturday, September 13, 2008 11:13 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] can you nest functions? problems with data types
Ok, I'm trying to
Ok, I'm trying to do some simple expressions to manipulate some values,
but I'm not having luck nesting expressions. Specifically, I can not
figure out how to use a function as a argument to another function.
This means I have to use incremental steps and assign the value to a
property, then refer
I'm working on getting a nightly deployment of our software up on a test
server. Part of the install requires rebooting the deployment server,
so I need a good way of detecting that the deployment server is alive
and kicking.
The process is going to be
- map drive to remote computer
- run unins
Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Kapinos
Sent: Wednesday, September 03, 2008 8:53 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] dependancy persistance or resetting?
I have a build file setup where one main body, calls several
I have a build file setup where one main body, calls several other
targets acting like functions. It was setup this way because the
sequence of the events was critical, and the job was specified it had to
run in a single pass.
So my main target looks like this
I defined the property ahead of time, I was able to
use anywhere in the fornext loop.
I still don't understand how I would use fileset above instead of items.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Kapinos
Sent: Tuesday, August 26,
I'm trying to grab a set of files from a directory, move it to another,
and prefix all the names with a variable as I move them.
My theory is to loop through each file with a fornext and use a fileset
to select my files. However, I can not seem to get the fileset and
fornext to be happy. The doc
another agent to work
on that branch.
-Original Message-
From: Bob Archer [mailto:[EMAIL PROTECTED]
Sent: Fri 8/15/2008 2:01 PM
To: Steve Kapinos; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] cc.net and nant and msbuild
Steven,
Thanks much. I looked at Team City over the
We moved from CC.net to teamcity with very good success. CC.net was
problematic for us at times. Moved from CC.net, sourcesafe, and bat
files to team-city, nant, and svn in one fell swoop.
In our setups, source control is handled by teamcity mostly, but some
scripts have source checkout in th
Using arg LINE instead of value will avoid using the quotes
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
We have a script that fails if using certain characters in the variables
The script has a simple portion like this
The property for domai
I always use myself now to avoid any quotation issues that arg value
may introduce. I think arg value may be too smart for its own good and causes
issues trying to insert stuff when it should not.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Here's a working example we use. Instead of using the msbuild task, we
just use exec to call up msbuild.
The arg value
But you cut out all the important stuff.. why mysql failed :)
I think the ( ) are just a display thing. That's not what its passing to the
command line.
Your issue could simply be working directories, specifying where the file is,
etc. You need to understand why mysql is failing and interpret
Thank you Bob - using achieved the desired result,
including the use of properties.
-Steve
-Original Message-
From: Bob Archer [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 1:05 PM
To: Steve Kapinos; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] way to see
Noob here..
I'm having trouble using exec to pass arguements to my svn client
successfully, but I can't figure out how to see what nant is actually
passing to the command line. verbose and debug aren't helping.
in the build file I have
38 matches
Mail list logo