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 if test=${not
file::exists(${version-info-script})}
Use if test=${not file::exists('version-info-script')}
Assuming
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
being the actual file name itself
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:
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
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
property name=partNumberMajor value=version::get_major(${version}) /
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
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,
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
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
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
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:
exec spawn=true pidproperty=install.pid
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
:[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 Install Shield stand alone builder? Because
it does return
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 lessons learned, and some
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
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
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
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
, September 14, 2008 4:15 AM
To: Steve Kapinos; 'Ron Grabowski'; 'nant'
Subject: RE: [NAnt-users] can you nest functions? problems with data
types
Hey Steve,
Use int::parse instead.
Gert
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Kapinos
Sent: zondag
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
. Without the outside ${ }
its not an expression. How do I reference the property 'position' here
to 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
...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
types
I can
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
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
target name=all depends=
-
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 other
targets
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
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
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
Using arg LINE instead of value will avoid using the quotes
exec program=${installshield}
arg line=-p Installer.ism/
arg line=-r Release/
arg line=-a productname/
arg line=-c COMP/
I always use arg line 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
Here's a working example we use. Instead of using the msbuild task, we
just use exec to call up msbuild.
target name=build-lcdpanel description=Build the LCD Panel
solution
mkdir dir=${build} /
exec program=${msbuild}
arg
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
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
exec program=C:\Program
Thank you Bob - using arg line=x y/ 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
35 matches
Mail list logo