Re: [NAnt-users] VS2010 devenv command from NAnt fails

2013-06-11 Thread Bevan Arps
Hi Bhavani

I suspect that you'll find those errors are the same as those you see during an 
interactive compile.

If you really want to suppress them (I'd put my effort into fixing the 
underlying code so it is warning free), redirect the command line output of 
devenv.com. The Nant exec task has an attribute for this.

Keep smiling
Bevan.

-Original Message-
From: Bhavani Kapparmath
Sent: 6/10/2013 7:54 PM
To: bevan.a...@clear.net.nz; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

Hi Bevan,

After VS2010 build is successful using Nant, I could see whole lot of warning 
messages are being displayed/shown in the mail (which is not good) that is sent 
from CC.net after build ends.
This was not the case earlier with devenv.exe.
Any idea here? Any thread that has already discussed on this?

Kind regards,
K BBhavani.
Tel # +91 080 6624 3452

The information contained in this email has been classified:
(  )  Larsen  Toubro Limited  -  General Business
(X) Larsen Toubro  Limited  -   Internal Use
(  )  Larsen Toubro  Limited  -  Confidential
(  )  Larsen  Toubro Limited  -  Proprietary

From: bevan.a...@clear.net.nz [mailto:bevan.a...@clear.net.nz]
Sent: Saturday, May 25, 2013 5:54 AM
To: nant-users@lists.sourceforge.net; Bhavani Kapparmath
Subject: Re: [NAnt-users] VS2010 devenv command from NAnt fails

Devenv.Com is designed for use for batch automation; Devenv.Exe is how the 
interactive IDE is launched.

From MSDN:
The devenv.com utility provides for the delivery of output through standard 
system streams, such as stdout and stderr, and determines the appropriate I/O 
redirection when it captures output, for example, to a .txt file.

I never tried to automate Visual Studio 2005, so it’s possible that using 
devenv.EXE worked just fine for that version; for later versions, it doesn’t.

One last thought: Deployment projects are deprecated in Visual Studio 2010 - 
and they’re not supported at all by Visual Studio 2012. I’d suggest that you 
add some tasks to your product backlog (or equivalent) to migrate away from 
.vdproj projects (I’d recommend moving to WiX); once that’s complete, you’ll be 
able to move the rest of your builds to MSBuild and leverage it’s speed and 
reliability.

Cheers,
Bevan.


Sent from Windows Mail

From: Bhavani Kapparmath
Sent: ‎Saturday‎, ‎25‎ ‎May‎ ‎2013 ‎3‎:‎38‎ ‎a.m.
To: Bevan Arps; nant-users@lists.sourceforge.net

Hi Bevan,
Looks like devenv.com resolved thee issue.
Befor i posted this issue, i used this devenv.com as a last try to resolv the 
issue.
Your reply on the same  confirmed it more n gave me more confidence on the fix.
What i m not sure is devenv failed always, but devenv.com resolved. Any idea 
here?

Thank yu so much


From: Bevan Arps [bevan.a...@clear.net.nz]
Sent: Friday, May 24, 2013 3:52 PM
To: Bhavani Kapparmath; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

As I recall (it's been a while), devenv.exe is what you run for an interactive 
session, devenv.com for batch processing.

Some background. If you don't specify an extension, the shell looks for 
possible programs to run by trying various extensions. I #think# it uses this 
order: bat, cmd, exe, com. So specifying devenv works just like devenv.exe.

Keep smiling
Bevan



From: Bhavani Kapparmath
Sent: 5/24/2013 9:40 PM
To: bevan.a...@clear.net.nz; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

Hi Bevan,

Thank you for the quick response.
I was using just devenv. Later changed to devenv.exe. Same failure results.
You want me to try devenv.com?

We are not using MSbuild, since we have one setup project(deployment project).

Kind regards,
Bhavani Kapparmath.
Tel # +91 080 6624 3452

The information contained in this email has been classified:
(  )  Larsen  Toubro Limited  -  General Business
(X) Larsen Toubro  Limited  -   Internal Use
(  )  Larsen Toubro  Limited  -  Confidential
(  )  Larsen  Toubro Limited  -  Proprietary

From: bevan.a...@clear.net.nzmailto:bevan.a...@clear.net.nz 
[mailto:bevan.a...@clear.net.nz]mailto:[mailto:bevan.a...@clear.net.nz]
Sent: Friday, May 24, 2013 2:11 PM
To: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net; 
Bhavani Kapparmath
Subject: Re: [NAnt-users] VS2010 devenv command from NAnt fails

Two suggestions.

Firstly, are you executing devenv.com or devenv.exe ? When I have needed to use 
the last resort of executing VS directly, using devenv.com has been far more 
reliable than devenv.exe.

Secondly, have you considered using MSBuild? Unless you’re doing something not 
supported by MSBuild (like a .vdproj msi deployment project), MSBuild can be a 
more reliable choice.

Hope this helps,
Bevan.


Sent from Windows Mail

From: Bhavani Kapparmath
Sent: ‎Friday‎, ‎24‎ ‎May‎ ‎2013 ‎8‎:‎15‎ ‎p.m.
To: nant-users

Re: [NAnt-users] VS2010 devenv command from NAnt fails

2013-05-24 Thread bevan . arps
Two suggestions.


Firstly, are you executing devenv.com or devenv.exe ? When I have needed to use 
the last resort of executing VS directly, using devenv.com has been far more 
reliable than devenv.exe.


Secondly, have you considered using MSBuild? Unless you’re doing something not 
supported by MSBuild (like a .vdproj msi deployment project), MSBuild can be a 
more reliable choice.


Hope this helps,

Bevan.




Sent from Windows Mail



From: Bhavani Kapparmath
Sent: ‎Friday‎, ‎24‎ ‎May‎ ‎2013 ‎8‎:‎15‎ ‎p.m.
To: nant-users@lists.sourceforge.net



Hello All,

 

We are facing issue with building VS2010 from NAnt. Below are the details:

 

· We migrated our project from Visual studio 2005 to Visual studio 2010.

· Post migration, we are seeing build issue in the build server 
machine. Details are below.

· Win 7 Professional SP1 versioned OS build machine is setup with 
Cruise control and NAnt script for automated builds with devenv.

· Building with VS 2010 causes a number of projects to start but do not 
finish.

The only message appears in the log ( which is generated by /log switch of 
devenv command) is :

Rebuild All started:Project:DWRAPPER, Configuration:BuildWithPortalSVC Win 
32-

Rebuild All started:Project:XYZ, Configuration:BuildWithPortalSVC Win 32---

· Count of project failure like above is not the same for every build.

· Building the project(solution file) in IDE is fine and also from the 
Command line with devenv.

· Here is the command in Nant.

 exec program=C:\Program Files\Microsoft Visual Studio 
10.0\Common7\IDE\devenv verbose = true
   arg line=${SolutionFile} /rebuild BuildTwinWithPortalSvc /out 
${BuildLog}/
/exec

We are stuck here now. there is no other error message that helps to find out 
what is happening during build of VS 2010 with NAnt. Why is the build failing 
with the above error message?

I am using NAnt 0.92. Also tried with nant-0.91-alpha2. Same results.

Seems in Win XP machine the issue is not seen.

 

Should I attached log file in the mail? Please let me know.

Kind regards,

Bhavani Kapparmath.

Tel # +91 080 6624 3452

 

The information contained in this email has been classified: 

(  )  Larsen  Toubro Limited  -  General Business 

(X) Larsen Toubro  Limited  -   Internal Use 

(  )  Larsen Toubro  Limited  -  Confidential

(  )  Larsen  Toubro Limited  -  Proprietary

 

Larsen  Toubro Limited 

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] VS2010 devenv command from NAnt fails

2013-05-24 Thread bevan . arps
Devenv.Com is designed for use for batch automation; Devenv.Exe is how the 
interactive IDE is launched.


From MSDN:


The devenv.com utility provides for the delivery of output through standard 
system streams, such as stdout and stderr, and determines the appropriate I/O 
redirection when it captures output, for example, to a .txt file.


I never tried to automate Visual Studio 2005, so it’s possible that using 
devenv.EXE worked just fine for that version; for later versions, it doesn’t.


One last thought: Deployment projects are deprecated in Visual Studio 2010 - 
and they’re not supported at all by Visual Studio 2012. I’d suggest that you 
add some tasks to your product backlog (or equivalent) to migrate away from 
.vdproj projects (I’d recommend moving to WiX); once that’s complete, you’ll be 
able to move the rest of your builds to MSBuild and leverage it’s speed and 
reliability.


Cheers,

Bevan.




Sent from Windows Mail



From: Bhavani Kapparmath
Sent: ‎Saturday‎, ‎25‎ ‎May‎ ‎2013 ‎3‎:‎38‎ ‎a.m.
To: Bevan Arps; nant-users@lists.sourceforge.net

Hi Bevan,
Looks like devenv.com resolved thee issue.
Befor i posted this issue, i used this devenv.com as a last try to resolv the 
issue.
Your reply on the same  confirmed it more n gave me more confidence on the fix.
What i m not sure is devenv failed always, but devenv.com resolved. Any idea 
here?

Thank yu so much


From: Bevan Arps [bevan.a...@clear.net.nz]
Sent: Friday, May 24, 2013 3:52 PM
To: Bhavani Kapparmath; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

As I recall (it's been a while), devenv.exe is what you run for an interactive 
session, devenv.com for batch processing.

Some background. If you don't specify an extension, the shell looks for 
possible programs to run by trying various extensions. I #think# it uses this 
order: bat, cmd, exe, com. So specifying devenv works just like devenv.exe.

Keep smiling
Bevan



From: Bhavani Kapparmath
Sent: 5/24/2013 9:40 PM
To: bevan.a...@clear.net.nz; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

Hi Bevan,

Thank you for the quick response.
I was using just devenv. Later changed to devenv.exe. Same failure results.
You want me to try devenv.com?

We are not using MSbuild, since we have one setup project(deployment project).

Kind regards,
Bhavani Kapparmath.
Tel # +91 080 6624 3452

The information contained in this email has been classified:
(  )  Larsen  Toubro Limited  -  General Business
(X) Larsen Toubro  Limited  -   Internal Use
(  )  Larsen Toubro  Limited  -  Confidential
(  )  Larsen  Toubro Limited  -  Proprietary

From: bevan.a...@clear.net.nz [mailto:bevan.a...@clear.net.nz]
Sent: Friday, May 24, 2013 2:11 PM
To: nant-users@lists.sourceforge.net; Bhavani Kapparmath
Subject: Re: [NAnt-users] VS2010 devenv command from NAnt fails

Two suggestions.

Firstly, are you executing devenv.com or devenv.exe ? When I have needed to use 
the last resort of executing VS directly, using devenv.com has been far more 
reliable than devenv.exe.

Secondly, have you considered using MSBuild? Unless you’re doing something not 
supported by MSBuild (like a .vdproj msi deployment project), MSBuild can be a 
more reliable choice.

Hope this helps,
Bevan.


Sent from Windows Mail

From: Bhavani Kapparmath
Sent: ‎Friday‎, ‎24‎ ‎May‎ ‎2013 ‎8‎:‎15‎ ‎p.m.
To: nant-users@lists.sourceforge.net

Hello All,

We are facing issue with building VS2010 from NAnt. Below are the details:


• We migrated our project from Visual studio 2005 to Visual studio 2010.

• Post migration, we are seeing build issue in the build server 
machine. Details are below.

• Win 7 Professional SP1 versioned OS build machine is setup with 
Cruise control and NAnt script for automated builds with devenv.

• Building with VS 2010 causes a number of projects to start but do not 
finish.

The only message appears in the log ( which is generated by /log switch of 
devenv command) is :

Rebuild All started:Project:DWRAPPER, Configuration:BuildWithPortalSVC Win 
32-

Rebuild All started:Project:XYZ, Configuration:BuildWithPortalSVC Win 32---

• Count of project failure like above is not the same for every build.

• Building the project(solution file) in IDE is fine and also from the 
Command line with devenv.

• Here is the command in Nant.

[The entire original message is not included.]
Larsen  Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic

Re: [NAnt-users] nant multitarget support?

2012-09-09 Thread Bevan Arps
Fwiw, I've found the csc task too limiting. 

Instead I use exec to run msbuild for either the whole solution or a specific 
project. This approach handles your scenario of using the C# 4.0 compiler to 
target .Net 3.5.

Keep smiling
Bevan.
 

-Original Message-
From: Stefan Arn
Sent: 9/5/2012 9:18 PM
To: 'nant-users@lists.sourceforge.net'
Subject: [NAnt-users] nant multitarget support?

I have C# code with 4.0 language features that need a C#4.0 compiler to 
compile. But the resulting code should run on .NET Framework 3.5. This is 
possible with VS2010 by simply selecting the target framework 3.5. But I had no 
luck with NAnt.

Is it possible to use the 4.0 compiler and target the 3.5 framework? I already 
tried to change the framework configuration in NAnt.exe.config without success. 
I also looked around for an option to specify the compiler exe file on the csc 
NAnt task.

What should I do? Any suggestions?
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Getting errors after upgrading to NAnt .90 - Any ideas?

2011-09-17 Thread Bevan Arps

On 18/09/2011 3:03 a.m., Macdiarmid, James D. wrote:

I don't believe XP has an Unblock feature.


Yes, it does - both XP Professional and XP Home have this feature. IIRC, 
it was introduced in SP3 - the big security patch for XP.


Keep Smiling,
Bevan.

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Solution format of file is not supported.

2011-05-27 Thread Bevan Arps

On 27/05/2011 8:00 a.m., Jed Padilla wrote:


Now I am getting a better error message (I think)

build.FACCBase:

  [msbuild] Build started 5/26/2011 3:57:55 PM.

  [msbuild] Project C:\TESTTFS\FACCBase\FACCBase.sln on node 0 
(default target


s).

  [msbuild] C:\TESTTFS\FACCBase\FACCBase.sln.cache(136,5): error 
MSB4126: The sp


ecified solution configuration debug|BNB is invalid. Please specify 
a valid so


lution configuration using the Configuration and Platform properties 
(e.g. MSBui


ld.exe Solution.sln /p:Configuration=Debug /p:Platform=Any CPU) or 
leave those


properties blank to use the default solution configuration.

  [msbuild] Done Building Project C:\TESTTFS\FACCBase\FACCBase.sln 
(default ta




[psychic debugging mode ON]
You're working on an HP or Compaq computer.
[psychic debugging mode OFF]

I ran into exactly this oddball error the other day and blogged about it 
here:


http://www.nichesoftware.co.nz/blog/2011-05/496/invalid-build-configuration-debugbnb

To save you the click, here's the lowdown.

For reasons entirely unconnected with MSBuild, my HP Probook has the 
environment variable PLATFORM defined as BNB.


Unfortunately, MSBuild picks this up as the default target platform, and 
bombs out because your solution file only includes things like Any CPU 
or x86.


The solution is to be explicit about the platform you want to compile 
for, by using the commandline parameter included in the error message:


/p:Platform=Any CPU

Hope this is useful.
Bevan.


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Thoughts on moving NAnt to git

2010-10-17 Thread Bevan Arps

 On 17/10/2010 2:21 p.m., Ryan Boggs wrote:

How do you all feel about moving NAnt to git?  Do you guys think that
it would be a welcome change?


What would this achieve?

What problem are you trying to solve?

Taking an open source project that targets the .NET framework and moving 
it to a DVCS that provides grudging support for Windows seems to be an 
odd move.


My 2c,
Bevan.

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Subversion Copy command throws an error

2009-01-15 Thread Bevan Arps
One thought ...

 

... given that ${ } doesn't mean insert macro value but instead
evaluate this expression ...

 

... is ${Release-.version} actually a subtraction involving the two
properties Release and .version ?

 

Cheers,

Bevan.

 

From: Bob Archer [mailto:bob.arc...@amsi.com] 
Sent: Friday, 16 January 2009 4:06 a.m.
To: Nayan Gowda; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Subversion Copy command throws an error

 

Put an:

 

echo message=Release-.version is: ${Release-.version}
http://10.99.82.12/branches/$%7BRelease-.version%7D  /

 

Right before your exec command. My guess is that this doesn't exist or
is blank or null.

 

BOb

 

 



From: Nayan Gowda [mailto:nayan.go...@gmail.com] 
Sent: Thursday, January 15, 2009 7:09 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Subversion Copy command throws an error

 

 

Hi,

   I  have written the below Nant script in order to update the
version of the build in the build.number  and commit the file back to
Subversion and Create a tag of the  trunk with the latest build version.

 

  I am able to increment the version of the build number and commit
the file back to Subversion. 

version  

buildtype=Increment 

prefix=Release-

revisiontype=Increment

verbose=true

  /version

  exec program=svn.exe basedir=E:\Projects\Subversion\bin 

commandline=commit build.number -m AutomatedCommit --username
draco --password draco --no-auth-cache --non-interactive

  /exec

 

but getting the following error on the execution of the copy command.

 

  exec program=svn.exe basedir=E:\Projects\Subversion\bin

commandline=cp svn://10.99.82.12/trunk/Code
svn://10.99.82.12/branches/${Release-.version}
http://10.99.82.12/branches/$%7BRelease-.version%7D  -m AutomatedCopy

 --username draco --password draco --no-auth-cache --non-interactive

  /exec

 

 

 
INTERNAL ERROR
 
 
 
System.FormatException: Index (zero based) must be greater than or equal
to zero and less than the size of the argument list.
 
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider,
String format, Object[] args)
 
   at System.String.Format(IFormatProvider provider, String format,
Object[] args)
 
   at NAnt.Core.ExpressionTokenizer.GetNextToken()
 
   at NAnt.Core.PropertyDictionary.EvaluateEmbeddedExpressions(String
input, Location location, Hashtable state, Stack visiting)
 
   at
NAnt.Core.Element.AttributeConfigurator.InitializeAttribute(PropertyInfo
propertyInfo)
 
   at NAnt.Core.Element.AttributeConfigurator.Initialize()
 
   at NAnt.Core.Element.InitializeXml(XmlNode elementNode,
PropertyDictionary properties, FrameworkInfo framework)
 
   at NAnt.Core.Element.Initialize(XmlNode elementNode,
PropertyDictionary properties, FrameworkInfo framework)
 
   at NAnt.Core.Project.CreateTask(XmlNode taskNode, Target target)
 
   at NAnt.Core.Target.Execute()
 
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
 
   at NAnt.Core.Project.Execute()
 
   at NAnt.Core.Project.Run()

 

  Can you please help me on this?

 

 

 

 



**
This message (and any files transmitted with it) are confidential and
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] NAntGraph

2008-12-02 Thread Bevan Arps
Hi everyone.

 

I've created a free tool - NAntGraph - that generates documentation
images showing targets and dependencies from a NAnt file.

 

Why? Most of my NAnt scripts end up being used by other developers -
smart people who aren't NAnt experts, or even regular users. Having an
image that shows the structure helps them to make use of the scripts
I've written.

 

If you're interested, more information here:

http://www.nichesoftware.co.nz/nantgraph

 

Keep Smiling,

Bevan.

 

PS: I wrote this tool in my own time, so it's nothing to do with my
employer. Standard disclaimer goes here.

 



**
This message (and any files transmitted with it) are confidential and
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Introducing StyleCopCmd (with NAnt Task Goodness!)

2008-10-30 Thread Bevan Arps
Hi!

 Oops :( Well, it seems yours is technically StyleCop.cmd, and mine is
 pure Pascal at StyleCopCmd :) So at least we still have that... I will
 add a disclaimer to the top of my page instructing users that they be
 searching for yours, and if so, where to get it.

Good idea - I'll put a reciprocal link on mine.

 I am sorry to impede on the name. I guess minds think alike :)

It's a pretty obvious name to arrive at.

Keep Smiling,
Bevan.



**
This message (and any files transmitted with it) are confidential and
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Introducing StyleCopCmd (with NAnt Task Goodness!)

2008-10-29 Thread Bevan Arps
Here's fun ...

... StyleCopCmd is also the name I used for my own commandline driver
for StyleCop, available here:

http://www.nichesoftware.co.nz/content/stylecop-cmd

Commandline only (no NAnt integration).

Cheers,
Bevan.


-Original Message-
From: Schley Andrew Kutz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 30 October 2008 9:19 a.m.
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Introducing StyleCopCmd (with NAnt Task Goodness!)

Thanks to Gert for some first-time task dev help :) I'd like to
introduce StyleCopCmd, a command-line interface and NAnt task for
Microsoft's source analysis tool, StyleCop. Read more about it at
http://stylecopcmd.sourceforge.net/.

Hope this helps!

-- 
-a

condensing fact from the vapor of nuance


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK  win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


**
This message (and any files transmitted with it) are confidential and
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Why NAnt over VS Studio builds?

2008-09-11 Thread Bevan Arps
Hi Tero.

 

I use NAnt because it does so much more than just build assemblies – my build 
scripts have included generation of documentation, rebuilds of databases, 
compilation of MSI packages, archival of builds to network directories and more.

 

FWIW, I use exec to invoke MSBuild to do the actual compilation step (meaning 
that VS maintains that build script) and use NAnt for the wider issues.

 

Hope this helps,

Bevan.

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tero Vaananen
Sent: Sunday, 7 September 2008 1:17 p.m.
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Why NAnt over VS Studio builds?

 


As a NAnt noob I have some fundamental questions. The VS Studio build system 
has worked fine for me for years, even with solutions that have a few dozen sub 
projects. Is there something that NAnt can do for me that would make my life 
considerably easier? What convinced you to start using it?

Thanks.



**
This message (and any files transmitted with it) are confidential and
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


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

2008-08-17 Thread Bevan Arps
Hi Bob.

 

We've recently adopted TeamCity, and I've found the whole point/click
interface to be a real bonus because *other people* will be able to look
after the builds, not just me.

 

CruiseControl.NET is capable and reliable, but the knowledge barrier to
entry is pretty high - and I didn't want to be the only one able to
maintain the builds.

 

I'm not sure what you want from your CI server wrt versioning - if you
just want to apply a label to the code in a particular build, TeamCity
supports that out of the box. Otherwise, yes, you need to write a script
using NAnt or your tool of choice.

 

Even though we're using TeamCity Professional (ie: the free edition),
we've found the support from JetBrains to be first-class: the couple of
questions we've posed have been answered both quickly and accurately.

 

Just my 2c,

Bevan.

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob
Archer
Sent: Saturday, 16 August 2008 6:02 a.m.
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 past few days and just
didn't see any advantage to it. Yes, it has some nice features. But, the
way it touts that you can set up your build with point/click interface
is well not so true. If all you do is compile and run unit tests. But,
what about versioning as a simple example. Well, I would have to create
a Nant script (or build plug-in). Same with any thing else I would have
to do. 

 

The biggest advantage for us would have been the build agents. We build
some VB6 code so each version has to run independently due to DLL
registration. 

 

I also looked at Final builder, which does do a lot of stuff out of the
box using an IDE, but it is pretty expensive. My budget for this is $0
so open source license price is right.

 

I wonder if your previous issues were with CC.Net or actually with
sourcesafe and bat files. 

 

Thanks for your input.

 

BOb

 



From: Steve Kapinos [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 15, 2008 1:38 PM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] cc.net and nant and msbuild

 

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 them (using exec not the svn components
of nant).

 

We build from a clean directory each time rather then rebuild.

 

Teamcity has been very good to us as a CI platform and integrates very
cleanly with nant and svn

 

-Steve

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob
Archer
Sent: Friday, August 15, 2008 1:27 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] cc.net and nant and msbuild

 

Hi All,

 

I am curious... when you have CC.Net setup up with a subversion source
control block, does it do an update of the workingDirectory? Or, do you
need to do that in your nant build file? I'm confused if the
autoGetSource means it does updates or just checkouts when there is no
_svn folder.

 

Also, if you tell MSBuild to do a Rebuild... does that mean it deletes
all of the obj/bin folders first by itself... or are you guys doing this
in your nant scripts?

 

Yes, I am re-working my builds again... decided to move away from CI
Factory, although I did get a lot of great ideas from its scripts. 

 

BOb

 



**
This message (and any files transmitted with it) are confidential and
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Cannot delete file '...\Temp\tmp12F.tmp\ResGen.exe'

2008-07-22 Thread Bevan Arps
Two thoughts come to mind - both long shots.

 

(i) How long is the path that you quote as
...\Temp\tmp12F.tmp\ResGen.exe - if your build folder is nested really
really deep, so deep the path exceeds 200 odd characters, you could have
a problem.

 

(ii) You've turned off your AntiVirus - what about any other
anti-malware software, say, Microsoft Defender or similar. Is there
anything else on the machine that is accessing that file?

 

Idea: Install Process Monitor from SysInternals
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) and
track activity on the machine. You'll be able to identify every access
to the file, by any process.

 

Hope this helps,

Bevan.

 



**
This message (and any files transmitted with it) are confidential and
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Builds suddenly failing: runtime framework 'net-2.0'is not correctly configured

2008-02-12 Thread Bevan Arps
Hi Chris.

FWIW, I've seen similar problems in the past and found them to be
environmental.

Some things to check ...

... Look at the environment variable TEMP. Does the directory exist?
Can you create files there?
[Why? If applications can't create temporary files they can fail in
strange ways]

... Look at the enviornment variable PATH. Has it been truncated? Are
some directories listed multiple times?
[Why? The path is still used for loading DLL files. If truncated
(there's a character # limit), a key system directory may no longer be
searched. I've found some installers/uninstallers have a habit of
duplicating PATH entries.]

... List the directory C:\. How many files are in the root of your
partition? Try (carefully!) removing any junk files? 
[Why? There are limits to how many files can be created in the root of a
drive, if all available directory entries are full you can have
weirdness.]


Hope this helps,
Bevan.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Weiss
Sent: Saturday, 9 February 2008 9:54 a.m.
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Builds suddenly failing: runtime framework
'net-2.0'is not correctly configured

I've been editing a NANT file that does delay-signing and then creates
policy files. After running the file, NANT suddenly started throwing
the following errors, regardless of what build file I feed it (even a
simple hello world build file fails).

C:\nant -f:test.build -debug
(numerous loadtasks snipped)
[loadtasks] Adding task 'xmlpoke' from
c:\nant\bin\NAnt.Core.dll:NAnt.Core.Tasks.XmlPokeTask
Framework 'net-1.0' is invalid and has not been loaded : The file
exists.
.
System.IO.IOException: The file exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.GetTempFileName()
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)

Framework 'net-1.1' is invalid and has not been loaded : The file
exists.
.
System.IO.IOException: The file exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.GetTempFileName()
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)


BUILD FAILED

The current runtime framework 'net-2.0' is not correctly configured in
the NAnt configuration file.
The file exists.


Stacktrace:

The current runtime framework 'net-2.0' is not correctly configured in
the NAnt configuration file.:
NAnt.Core.BuildException: The current runtime framework 'net-2.0' is
not correctly configured in the NAnt configuration file. ---
System.IO.IOException: The fi
le exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.GetTempFileName()
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)
   --- End of inner exception stack trace ---
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode
platformNode)
   at NAnt.Core.ProjectSettingsLoader.ProcessPlatform(XmlNode
platformNode)
   at NAnt.Core.ProjectSettingsLoader.ProcessSettings()
   at NAnt.Core.Project.CtorHelper(XmlDocument doc, Level threshold,
Int32 indentLevel, Optimizations optimization)
   at NAnt.Core.Project..ctor(String uriOrFilePath, Level threshold,
Int32 indentLevel)
   at NAnt.Core.ConsoleDriver.Main(String[] args)

I've no clue what files it thinks exists. I diff'd my nant folder with
a working nant folder on another machine and there's no extraneous
files and no changes to the config files.

Anyone have any ideas where to look? It doesn't appear that .Net is
corrupted on my machine (nothing else is floundering, that I can
tell).


-- 
-Chris


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Syncing two folders

2007-05-24 Thread Bevan Arps
Chris wrote:
 
 I've got two folders on the same machine that I'd like to keep in
sync.
 
It might be a heretical comment to make, but perhaps a NAnt task is not
the best solution ...
 
I have exactly this situation, maintaining backup mirrors of my
documents, mail, project work and a large digital photo collection
across my home network. Total size is in excess of 40GB, so deleting and
recopying isn't a viable solution.
 
My approach?
 
Using RoboCopy - a robust copy tool that freely available from Microsoft
as a part of the Windows Server Resource Kit tools:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4
ae7-96ee-b18c4790cffddisplaylang=en
 
If you have other tasks that NAnt is automating, then you could invoke
Robocopy with an exec task ...
 
Hope this helps,
Bevan.

Bevan Arps  |  Senior Analyst/Programmer  |  Knowledge Services Group  |
Reserve Bank of New Zealand  |  ( +64 (0)4 471 3689  |  *
[EMAIL PROTECTED]  |  : www.rbnz.govt.nz
http://www.rbnz.govt.nz/ 

 
 


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Info Required ...

2007-03-08 Thread Bevan Arps
Hi Deepak.
 
I had a quick look at your script and you are trying to run every script
with a single invocation of SQLCMD.exe.
 
You may be running into a limitation on the maximum length of a command
line, or into some other limitation of SQLCMD.exe.
 
I've always used a foreach to run my database scripts:
 
foreach item=File property=ddl.file
  in
items
  include name=Schema-???.ddl/
/items
  /in
  
  do
  
echo message=Running script ${ddl.file}/
sql connstring=${database.connection}
 delimiter=go delimstyle=Line print=true
transaction=false
 source=${ddl.file}/
 
  /do
  
/foreach

 
Hope this helps,
Bevan.
 
PS: It's a good idea to give your questions an informative subject line.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] FW: Licensing Issues with third party Win controls

2007-02-20 Thread Bevan Arps
I haven't had your exact issue - but hopefully this will help.
 
I've had some issues with running MSBuild from within NAnt that were
resolved by setting the workingdir property on the exec task.
 
Good luck!
Bevan.



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lattimer,
Ryan
Sent: Wednesday, 21 February 2007 9:07 a.m.
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] FW: Licensing Issues with third party Win controls




I have seen other posts that relate to the problem I am going to
explain, but I have not found one that duplicates it.  So here I go...

I am running Nant 0.85 and CruiseControl.Net 1.2.1 
I am using Infragistics controls which require a license.licx file.  I
am using MSBuild in Nant to build my solutions because I am running VS
2005.  When I run my build file from the command line or build my
solution using MSBuild from the command line I have no problems.  When
CC.Net fires off my build here is the error I get:

My Project\licenses.licx(1): error LC0004: Exception occurred creating
type 'Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar,
Infragistics2.Win.UltraWinExplorerBar.v6.3, Version=6.3.20063.53,
Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'
System.ComponentModel.LicenseException: Unable to locate license
assembly.

What doesn't make any sense is I can run my build file without an issue
from the command line.  What would cause it to act any different if run
from CC.Net.  This may not be a Nant issue.

I looked through the build log and it fails after it runs lc.exe.  For
some reason when run from CC.Net the lc.exe fails to create a .licenses
file.  But creates one without a problem run from anywhere else.

Thanks in advance. 
Ryan 



**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] SQL task and file encoding

2006-10-05 Thread Bevan Arps



Hi Anders.

Just a thought ...

Is your SQL script stored as a Unicode file, or an ASCII 
one?

I've seen problems before when an ASCII file containing high-ascii 
characters (with codes over 127) is processed by a .NET program. Changing the 
file to a Unicode UTF-8 format fixed the issues.

Hope this helps,
Bevan.


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Anders 
OlsenSent: Thursday, 5 October 2006 10:01 p.m.To: 
nant-users@lists.sourceforge.netSubject: [NAnt-users] SQL task and 
file encoding

Hello fellow NAnt users

We are using NAnt to deploy our database. Now we would also like to use it 
to insert some data in the database. We are trying to use the sql-task from 
NAntContrib to execute our script.

Our script contains data written using Danish characters (like øæå), but 
these characters are not handled correctly by NAnt - they are not inserted into 
the database.

We use the following task definition to start the sql-task:
sql  
connstring="Provider=SQLOLEDB;Data Source=source; Initial 
Catalog=DPSData; Integrated Security=SSPI" 
transaction="true" delimiter="GO" 
delimstyle="Line"  print="true" 
batch="false" 
source="${project.basedir}\..\DataBase\Database\Change 
Scripts\Data_Insert.sql"/
Part of the Data_Insert.sql script looks like this:
---/* ActorType */
INSERT INTO [DPSData].[dbo].[ActorType] ([TypeName]) VALUES ('TSO')INSERT 
INTO [DPSData].[dbo].[ActorType] ([TypeName]) VALUES 
('Handelsbalanceansvarlig')INSERT INTO [DPSData].[dbo].[ActorType] 
([TypeName]) VALUES ('Produktionsbalanceansvarlig') INSERT INTO 
[DPSData].[dbo].[ActorType] ([TypeName]) VALUES 
('Forbrugsbalanceansvarlig')INSERT INTO [DPSData].[dbo].[ActorType] 
([TypeName]) VALUES ('Netoperatør')INSERT INTO [DPSData].[dbo].[ActorType] 
([TypeName]) VALUES ('Producent') go
---
All values are inserted into the database,except that the'ø' in 
'Netoperatør' is missing.

When we run the script using Microsoft SQL Server Management Studio, there 
is no problem.

How do I tell NAnt or the sql-task to handle the danish characters 
correctly?
-- RegardsAnders Kåre Olsen 

**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.


This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Fwd: Nightly NAnt+NAntContrib + Windows Scheduled Task = hang

2006-08-21 Thread Bevan Arps



I haven't run into your problem myself, but one thing that comes to mind 
...

... is it NAnt that's hanging, or java? Try using Task Manager to see if 
the NAnt process is still in memory at the time of the hang.

... The reason I ask, is that I seem to recall (although I can't find a 
reference through Google) that there was a problem with some java JVM's not 
handling a non-zero return value from a spawned process.

This would be relevant because the value returned by NAnt differs between 
success and failure.

Hope this helps,
Bevan.


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Vagmi 
MudumbaiSent: Sunday, 20 August 2006 7:22 p.m.To: Fernando 
P. Nájera CanoCc: nant-users@lists.sourceforge.netSubject: 
Re: [NAnt-users] Fwd: Nightly NAnt+NAntContrib + Windows Scheduled Task = 
hang
Hi,Has anybody found a solution for this? I have a very wierd 
problem. I use the java's Runtime.exec() function to get a process. Nant process 
hangs after BUILD FAILED. However it does exit properly when the build succeeds. 
Any help here? I am using NAnt RC4. Regards,Vagmi
On 5/22/06, [EMAIL PROTECTED] 
 
[EMAIL PROTECTED] wrote:
Hi,Sorry 
  if this message appears twice. I sent it some time ago but I cannot see it 
  in the archive.I use NAnt heavily in our team. We have CC.NET and all of our projectsare built using 
  NAnt .build files.Also, I have a lot of other tasks (for example, 
  nightly backups or builds) and I have set up 3 files for each: a .bat file 
  that actuallycalls nant, a .build file that set up some properties, and 
  another.build file (a little more generic) to execute the task [for 
  example,to backup an Oracle database, the .bat file calls a .build file 
  that states the user, password and destination file as properties, and 
  thencall a generic "oracleexport.build" that makes the job).I 
  schedule these tasks via Windows Scheduled Tasks (I hope this is the name, 
  as my system is in Spanish. You can find them at Control Panel -Scheduled 
  Tasks). I have set up an account for them to run as, sothere is no problem 
  of permissions here.Also, the .bat file registers two loggers: one is 
  a file logger and the other one is the MailLogger.So, since I 
  installed last nightlies for NAnt and NAntContrib, thevery same 
  .bat/.build files now behave a little strange. Some of themworks as 
  expected, but others hang **after** writing "build succeded". The task 
  just hangs, NAnt does not stop, and the task is marked asrunning. The only 
  way to stop them is either to way the number ofhours stated at the 
  Scheduled task, or, if I have started the sessionfrom the console of the 
  server, I see the command window there, so I can press "X", wait for 
  "Terminate application" window, and force itsshutdown.As this is 
  happening to files that I have not changed, and they workedwell before 
  updating NAnt/NAntcontrib, does anyone know if a "recent" change could 
  produce this behaviour? Or a way to diagnose what theproblem can 
  be?BTW: I suspected from the email logger. But the emails are sent. 
  Couldit be a leak in some "exec" task that makes NAnt hang waiting for 
  that leak to finish?Thank you very much in advance,Best 
  regards,Fernando 
  Nájera---Using 
  Tomcat but need to do more? Need to support web services, security? Get 
  stuff done quickly with pre-integrated technology to make your job 
  easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642___NAnt-users 
  mailing listNAnt-users@lists.sourceforge.net 
  https://lists.sourceforge.net/lists/listinfo/nant-users-- http://geekswithblogs.net/vagmi.mudumbaihttp://installneo.blogspot.com"Peace 
is its own reward." - Mahatma Gandhi 

**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.


This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns about
the content of this message they should seek alternative confirmation
from the Reserve Bank of New Zealand.
**

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net

RE: [Nant-users] Scripting deletes of old builds

2005-09-28 Thread Bevan Arps

Si wrote:

 Although this can be achieved in NAnt, i'm wondering why you wouldn't
 just use a version control tool (e.g. Subversion) to achieve this?

At a previous employer (around 7 years ago), we kept a limited history
of our builds on the network in a folder structure, much like the
original poster in this thread discribed.

We didn't use a version control tool for this for a number of reasons.

Some background: A full build occurred every night, resulting in 74
windows applications occupying around 200MB of space. We also did
frequent on command builds to test that things were integrating
properly, plus regular release-candidate builds.

Most VCS tools do not store differences between binary files (certainly
the one we were using didn't) and checking 200MB in every night would
have made the repostory very big, very quickly. 

A large repository brings with it two problems: 
(a) Backups become difficult (our system at the time used 4GB tapes,
which we would have exceded in under two months);
(b) Many of the reported problems of repository corruption (across many
different VCS products) seem to relate to large repositories containing
binary files.

Also, VCS tools are typically built to retain all the history of a file
- this is not so useful if some revisions only need to be kept a while.

Consider that we retained:
  o  Last two weeks of nightly builds;
  o  Integration builds relating to the next release only;
  o  All Release Candidate Builds;

Managing this on the network was easy - doing so in a VCS could have
been a real nightmare.


On the other hand, all our source code and related artifacts was kept in
our VCS, with everyone expected to check in everything *every night* -
with beer fines for people who broke the build.

Hope this is useful,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Build target from command line without dependencies

2005-09-21 Thread Bevan Arps
Kelly Anderson wrote:

 Why wouldn't you use NAnt to do backups? 

For what it's worth ... And depending on what kind of backup you mean
... I do.


If you mean keeping a copy of the results of a build ...

... In all my software build scripts, I have a release target that
does the whole build and then archives the full results into a
repository area on our network. This archive includes a full executable
image (all the files in their correct directories), release notes,
supporting scripts (e.g. SQL), installer etc etc.


If you mean keeping a copy of the source that went into a build ...

... The deploy target that I use to migrate my website from test into
production also checks the source into SubVersion and applies a label so
that I know exactly what went live when. (Technically, this is an Ant
script not a NAnt one, but I still feel it's a valid example).


If you mean mirroring a file tree to a second location ...

... I used to use the copy task to maintain a backup of key documents
and files across my home network on another machine. Worked very well at
the time, but I've since moved to a different approach.


Hope this helps,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Build target from command line without dependencies

2005-09-15 Thread Bevan Arps

Kelly Anderson wrote:

 All of the marketing for NAnt seems to indicate that it is a
 replacement for make.
 ...
 Sure, you CAN write a make system with a shell script, but the beauty
of
 make was that the dependency checking was implicit and built in. It
 seems with NAnt that you have to add the dependency checking
explicitly.

Hi Kelly.

Back in the bad old days before NAnt and Ant, I made extensive use of
make files for building software across a number of platforms (Solaris,
OS/2, DOS).

In every case, the make tool involved had some native understanding of
simple dependencies (e.g. that .c files can be made into .o files by
cc), but the explicit (high level) dependencies needed to be explicitly
stated.

I don't see that NAnt is different in any way that matters ... Some
tasks have built in knowledge of dependencies, so they avoid doing extra
work, some don't.

Cheers,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] if attribute on mkdir ignored

2005-08-23 Thread Bevan Arps
Marrill Cornish wrote:

 We could add a new stmt attribute whose string value is an entire 
 XML element whose whole execution is to be conditionalized on test 
 attribute ...

The down side of this is that the parsing of the XML within the
statement attribute would need to be handled by the code implementing
if, instead of being handled by the XML parser itself. This is
sufficiently fraught with peril that I suggest it should be avoided at
all costs.

Just my 5c (New Zealand doesn't have 2c coins).
Bevan.



**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Choices Choices Choices!!!!

2005-08-11 Thread Bevan Arps
Hi Hal.

 I am in the process of setting up an environment to do 
 Continuous Integration ...

 I am looking at NAnt, NUnit, CruiseControl.Net, BuildRobot, and a
couple 
 others such as gump but can't seem to distinguish on which products
are best.

I'm not sure, but you might be getting some of these things confused
with each other - not all of these are mutually exclusive.

For example, I've been using these three together at home:

NAnt - Build automation
NUnit - Test Automation
CruiseControl.Net - Scheduling of Builds and Tests

(I have plans to start using these at work, but we've a way to go before
we're ready for that).

 Can anybody comment on why I should use NAnt and NUnit instead of any 
 other products or comment on other product comparisons or comment 
 on the gump or BuildRobot products

The most compelling reason I can suggest is the breath of the community
that has built up around NAnt and NUnit. There are active mailing lists,
websites and many helpful volunteers who are happy to help out (provided
you're willing to work at things yourself as well).

NAnt/NUnit/CC.Net also have their closely related Java Cousins - Ant,
Junit and CruiseControl - and there is a whole lot of stuff that can be
easily applied across the .NET/Java boundary.

My suggestion would be to move slowly - big bang is a good way to go
bust, if you'll excuse the pun.

Get automated builds going with NAnt, then introduce some Test
Automation. Once these are going smoothly, work on getting CC.Net to do
the builds and regression testing. Take small steps - getting value from
each one. 

Last thought - document what you do (motivations as well as decisions) -
so that the build process isn't dependent on you. Don't build something
that will collapse when/if you leave - make it so easy to do that people
will do it without your input.

Cheers,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Non .Net automated Build Tools

2005-08-03 Thread Bevan Arps
 
Hi Hal.

 We are currently looking at tools to perform automated build with. 
 We currently use C++ and Visual Basic, however they are pre - .Net
versions. 
 Can you tell me if NAnt supports pre .Net versions of C++ or VB? 
 I always see references to the CLR and .Net versions 1.0 and later ...
 but never anything related to pre .Net.

NAnt supports non .NET builds just fine - the only caveat is that you
may need to work a bit harder to get things done.

Some data points for you ...

1) I'm currently using NAnt (at home) to compile Delphi 7 applications,
pack those applications and support files into an NSIS installer and
then create a ZIP distribution file. Only the ZIP stage has a dedicated
NAnt task.

2) I also currently use Ant (NAnt's Java based cousin) to publish some
websites using XSLT (ie not compiling any java code)

3) Some years ago, I used an earlier version of Ant to build an entire
suite of Bespoke Delphi 5 applications - the build process included
retrival of source code from QVCS, compiling 74 applications, archiving
successfully built applications, creating an HTML log page on our
intranet, and sending an email to whoever broke a build. None of these
steps had native support in Ant.

I'd suggest that NAnt *can* make your builds work, and work well.

Keep Smiling,
Bevan.




**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] FTP Uploads - what are you people using as solution?

2005-06-26 Thread Bevan Arps
 
Hi Thomas.

 What are you people using as solution for automating FTP uploads? 

 I have the situation that in a publishing step I need to automatically

 upload stuff to an FTP location. The Nant ftp task is still coming.
So, 
 what are the alternatives that are popular?

I make extensive use of both Ant and NAnt in different projects.

My web projects use Ant - and use the ant ftp task to do the uploads.

Would be overkill to use Ant just for ftp, but may still be relevant,
depending on your other requirements.

Cheers,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] xmlpeek returns multiple node values

2005-05-25 Thread Bevan Arps
Shelly Midha asked:

 I'm using xmlpeek to read xml configuration file. 
 I want to retreive the 'value' for given value of name

Well, I've never used xmlpeek - but I do develop XSLT stylesheets, so I
understand XPATH expressions.

 xmlpeek verbose=false file=${DB.DBFilePath} 
  xpath=/parameters/parameter/name 
  property=DB.DataFilePath / 

The XPATCH expression /parameters/parameter/name is working correctly
- both of the parameters are matching.

You need to add some kind of predicate to your XPATH expression to only
match one parameter.

One way is to match based on index, something like this:

 xmlpeek verbose=false file=${DB.DBFilePath} 
  xpath=/parameters/parameter[1]/name 
  property=DB.DataFilePath / 

However, this will fail if the your XML file is changed, as it's hard
coded to retrieve the first parameter, no matter it's name.

This might be better:

 xmlpeek verbose=false file=${DB.DBFilePath} 
  xpath=/parameters/parameter[name = 'DATA_FILE_DIR']/value 
   property=DB.DataFilePath / 

Ie: Give me the Value of the Parameter with name 'DATA_FILE_DIR'.

Caveats: 
(i) These examples are written of the cuff, so to speak, so they're
completely untested.
(ii) I normally write XSLT for the Apache Xalan XSLT processor; there
may be some differences between it and the MSXML processor used by NAnt.

Hope this helps,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_idt02alloc_id135op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] If, then, else construct

2005-05-22 Thread Bevan Arps
Gert Driesen wrote:

 For those of you that have been begging for an if, then, else 
 construct in NAnt ...

Looks great - using the same construct as XSLT makes a lot of sense.

Just one comment though - the documentation page does indicate that the
when clauses are evaluated from top to bottom, but it took me three or
four readings to find it. Perhaps the order of evaluation needs to be
more conspicuous? And maybe an example to ram the point home ...

Since it's bad form to criticise without being willing to fix it, here
is one possible rephrasing:


The choose task executes only the tasks contained within the 
first when element whose test expression is true.

If multiple when elements have true tests, only the tasks 
contained by the first (in document order) are exectuted.

If no contained when clause tests true, tasks (if any)
contained 
by the otherwise element are executed instead.

Examples

ii Demonstrate priority of when elements

choose
  when test=...
  /when
  when test=true
  /when
  when test=...
  /when
/choose

If the first when element is not executed, the second will
always be. The third
when clause will never be executed


Hmmm ... These don't read as well as what you already have. I'll have a
think and followup with some alternatives if I can come up with them.

Keep Smiling,
Bevan.



---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12alloc_id344op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Code conditional on whether a target is defined...

2005-05-10 Thread Bevan Arps
Hi Thomas.

 Depending on whether a target is defined or not I  
 want to perform certain operations. 

I don't know of any way to check to see if a particular target *is
going* to be called - but you can define a property to tell if it *has*
been run.

 The checkin target will ONLY run when the checkout target 
 has also been defined. 

For example, your checkout target could define a property
checkout.hasRun - and checkin could then check (using the if task) to
see if the property has been defined before doing anything.

 If the checkout target has been defined, certain other 
 targets will behave different. Like, there is no need to 
 remove the write protection on some files as they are not 
 write protected.

Again, as long as the checkout target runs first, you could use a
property flag for this.

Hope this helps,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93alloc_id281op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] NAnt script and Xml command file integration

2005-05-05 Thread Bevan Arps
Hi Sandeep.

I've done something similar to what you describe - but entirely in NAnt.
No external configuration file.

I can't post my .build file, but it worked something like this:

First, create targets that set properties to describe your target
environments.

In my case, I had these targets:

  o  dev
  o  test.a
  o  test.b
  o  test.c
  o  production

Each target defines a number of properties that relate to the specified
environment. For example, database.connection is the connection string
to for the database.


Second, create targets to do the actual deployment. These targets are
the consumers of the properties defined by the first set of targets.

For example, the target database.rebuild would drop, recreate and
populate the database for a system.


Once both sets of targets were defined, using them was just a matter of
composing the appropriate pair on the commandline:

; Rebuild the development database
C: nant dev database.rebuild

; Deploy the latest build into the test.b environment
C: nant test.b deploy.latest

And so on.

Hope this helps,
Bevan.



**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] newbie first post

2005-02-21 Thread Bevan Arps
Hi Clive.

 I'm unsure of the scope of NANT in terms of how appropriate it is to 
 a mixed environment with some .NET apps and older legacy VB6 apps - 
 most apps with SQL Server as a back-end.   

For what it is worth ...

... I have been using Ant (NAnt's Java oriented cousin) for years to do
website builds (XML+XSLT) and application builds (Delphi for Win32). The
system works extremely well.

Recently, I switched my Ant build scripts for the Delphi applications to
NAnt - and they work as well as Ant. (This was a learning exercise, more
than anything else).

So, Does NAnt work for ordinary Win32 applications? Absolutely.

There are some bells and whistles that are .NET oriented, but the
foundation of NAnt is quite generic.

For a good place to start, check out the exec and for-each tasks.


A last comment: NAnt is SCM agnostic - it can work with most any SCM
tool. Requirements are either NAnt tasks (available for most products)
or a commandline interface (which almost every SCM tool has) that can be
invoked by exec.


The key is to know WHY you want to automate your builds. If you need to
expand on your reasoning here, have a look at the Pragmatic Starter
Kit books here:
http://www.pragmaticprogrammer.com/starter_kit/au/index.html

Keep Smiling,
Bevan.


**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Conditions on a property value?

2005-02-09 Thread Bevan Arps
 
Well, I'm a NAnt newbie myself, but I can give you some pointers.

The ${...} construct is used to evaluate an expression, not just get the
value of a property.

So, you want something like this:

if test=${ property::exists('ccnet.buildcondition') and
ccnet.buildcondition='ForceBuild'}
  ...
/if

Hope this helps,
Bevan.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Noel Llopis
Sent: Thursday, 10 February 2005 7:53 a.m.
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Conditions on a property value?

I'm very new to Nant, so this might be obvious, but how exactly can I do
conditional things based on the *value* of a property?

I've seen the if task
(http://nant.sourceforge.net/release/latest/help/tasks/if.html), and it
seems I can do just about anything except for check the value of the
property.

Towards, the bottom, there's a brief mention of the test parameter, but
it
doesn't work at all for me:

if test=${ccnet.buildcondition}='ForceBuild'
   property name=build value=rebuild/
/if

This complains that an if task always needs a propertyexist or some
other
one. If I add propertiexists on top of test, test is ignored and the
condition of if appears to be always true.

I also tried doing

property name=build value=build
if=${ccnet.buildcondition}='ForceBuild'/

but it claims that the expression in the if statement is not valid and
it
doesn't know how to compare it.

This has to be really trivial. Any idea?
Thanks!


--Noel




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Transactionality in NAnt

2005-01-25 Thread Bevan Arps

 I agree that a build is not a deployment, but I do believe 
 a build can be a component of a deployment.  

I am also looking to use NAnt as both a build tool and a deployment
tool. (Haven't got there yet, still setting up infrastructure).

I disagree, however, with the premise that NAnt should be fully
transactional.

Why?

For NAnt to be fully transactional, every task needs to have built in
smarts to support rollback.

How would you achieve this in a task that runs an SQL script to update
the table structure of a database? It seems that you're expecting the
task to be able to understand the script and dynamically generate
another script to restore the database to its former state.

Even for simpler tasks, like deleting files from a file system, the
issue of transactionality becomes difficult. You can't just defer the
delete until it is time to commit, because other activities are likely
to occur in the same directories. Instead, you need to move the files
(to somewhere there is enough disk space, which may not be TEMP), then
handle both commit (delete/cleanup) and rollback (move the files back
again).


In my scripts, the structure I'm taking is that our change controller
will have two separate commandlines to run.

The first will perform a full backup of everything affected - zip
directories, extract registry keys, dump database tables.

When that has worked, the second will do the actual deployment, with
appropriate error messages if everything fails.

Just my 2c,
Bevan.



**
This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand.
**





---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users