Re: [NAnt-users] properties in functions

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

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 Use Assuming 'version-info-script' is the name of the file you are looking for. Strings put in ' ' , function names and prop

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

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 work

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 differen

Re: [NAnt-users] parsing version string

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

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, n

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 wa

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

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 Sam

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

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

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

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

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

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

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

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

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

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"

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

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

[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 \\10.0

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

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 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

[NAnt-users] Norweigan characters in variables

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

Re: [NAnt-users] Exec command

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

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

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. The arg value

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 interpret

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

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

[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