Re: [NAnt-users] properties in functions

2009-04-08 Thread Steve Kapinos
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

Re: [NAnt-users] properties in functions

2009-04-08 Thread Steve Kapinos
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

[NAnt-users] suppressing unzip output?

2009-02-17 Thread Steve Kapinos
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?

Re: [NAnt-users] PSTools - help

2009-02-14 Thread Steve Kapinos
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:

Re: [NAnt-users] psExec

2009-02-10 Thread Steve Kapinos
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

Re: [NAnt-users] examples of Environment Config Files

2009-02-06 Thread Steve Kapinos
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

Re: [NAnt-users] parsing version string

2009-02-01 Thread Steve Kapinos
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

Re: [NAnt-users] problem with property assignment

2008-12-15 Thread Steve Kapinos
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,

Re: [NAnt-users] Mirror web data between remote servers

2008-12-11 Thread Steve Kapinos
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

[NAnt-users] suggestions for passing control logic from script back into nant?

2008-11-12 Thread Steve Kapinos
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

[NAnt-users] Any way to do a while loop?

2008-11-10 Thread Steve Kapinos
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

Re: [NAnt-users] Any way to do a while loop?

2008-11-10 Thread Steve Kapinos
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

Re: [NAnt-users] Any way to do a while loop?

2008-11-10 Thread Steve Kapinos
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

Re: [NAnt-users] summary of nant lessons learned, and some examples

2008-10-16 Thread Steve Kapinos
:[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

Re: [NAnt-users] summary of nant lessons learned, and some examples

2008-10-16 Thread Steve Kapinos
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

Re: [NAnt-users] xmlpeek - Multiple nodes found with the XPathexpression

2008-10-16 Thread Steve Kapinos
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

[NAnt-users] summary of nant lessons learned, and some examples

2008-10-15 Thread Steve Kapinos
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

Re: [NAnt-users] .Net SDK 3.5

2008-10-09 Thread Steve Kapinos
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

[NAnt-users] Adding a redirect to null in exec?

2008-09-15 Thread Steve Kapinos
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

Re: [NAnt-users] can you nest functions? problems with data types

2008-09-14 Thread Steve Kapinos
, 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

[NAnt-users] can you nest functions? problems with data types

2008-09-13 Thread Steve Kapinos
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

Re: [NAnt-users] can you nest functions? problems with data types

2008-09-13 Thread Steve Kapinos
. 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

Re: [NAnt-users] can you nest functions? problems with data types

2008-09-13 Thread Steve Kapinos
...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

[NAnt-users] Suggestions for detecting availability of remote machine?

2008-09-09 Thread Steve Kapinos
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

[NAnt-users] dependancy persistance or resetting?

2008-09-03 Thread Steve Kapinos
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=

Re: [NAnt-users] dependancy persistance or resetting?

2008-09-03 Thread Steve Kapinos
- 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

[NAnt-users] task/function to rename files with a prefix?

2008-08-26 Thread Steve Kapinos
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

Re: [NAnt-users] cc.net and nant and msbuild

2008-08-15 Thread Steve Kapinos
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

Re: [NAnt-users] cc.net and nant and msbuild

2008-08-15 Thread Steve Kapinos
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

Re: [NAnt-users] How can I enclose a quote within a string?

2008-07-10 Thread Steve Kapinos
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/

Re: [NAnt-users] Exec command

2008-05-06 Thread Steve Kapinos
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

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

2008-04-29 Thread Steve Kapinos
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

Re: [NAnt-users] Executing a mysql script inside Nant

2008-03-24 Thread Steve Kapinos
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

[NAnt-users] way to see what exec passes to command line?

2008-02-29 Thread Steve Kapinos
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

Re: [NAnt-users] way to see what exec passes to command line?

2008-02-29 Thread Steve Kapinos
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