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
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'}
...
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
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:
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
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,
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}
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
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 ...
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
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
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
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
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
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
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.
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
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
/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
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]
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
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
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
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
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
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
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:
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
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]
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.
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:
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
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: 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
34 matches
Mail list logo