On 9/1/05, Kevin Kirkpatrick <[EMAIL PROTECTED]> wrote:
> I'm trying to use the nant if condition to act on the value of a property.
>
> http://nant.sourceforge.net/release/latest/help/fundamentals/expressions.html#expression-syntax
The syntax you are after looks like:
...
--
Troy
I’m
trying to use the nant if condition to act on the value of a property.
value="d:\Microsoft\EnterpriseLibrary"/>
value="d:\builddir"/>
value="ISOAUTOMATION"/>
value="MSENT"/>
…
value="${MSEnterpriseLibrary}" />
Is this allowed? Or are t
Robert Smith wrote:
In that case, you can do something like this:
unless="${property::exists('config')}" />
inheritall="true">
**Thus, it’ll carry the property forward into other .build files…**
It shouldn't be necessary to specify both inheritall="true" and explicit
properties. O
In that case,
you can do something like this:
Thus, it’ll carry the property forward into other .build files…
~Robert
From:
[EMAIL PROTECTE
You could do
something like:
nant
-buildfile:InitialReportsWeb.build "-D:branch=4873"
"-D:build.label=4873_06_1.01.003"
"-D:build.version=9.99.001" "-D:config=Debud "
"-D:test.env=DevInt"
Each of the
properties being defined within the .build file. The “-D:” passed
at command
I’m
trying to use the nant if condition to act on the value of a property.
value="d:\Microsoft\EnterpriseLibrary"/>
value="d:\builddir"/>
value="MSENT"/>
value="${MSEnterpriseLibrary}" />
Is
this allowed? Or are there other methods to do that?
Thank
Paul Cowan wrote:
How can I pass external parameters into the NANT script??
NAnt can:
get properties on the command line
read an entire file into a property
loop over the lines of a file
include subordinate NAnt build files, which can contain property
definitions
get the value
Thanks Robert. That makes sense (though it’s
kind of reverse thought). Anyway, the additional thing that seems to be
happening in relation to this is that the default property (not the new one
passed in) seems to get passed on to subsequent nant calls in my script. So I
have 15-20 scripts a
Environment variables. I start the script using a batch file
that defined environment variables, which can come from the command line, and
the I initiate nant with the location of the nant script.
Bert
From: Paul Cowan
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, August
How can I pass external parameters into the NANT script??
Thanks
Paul
_
VirusChecked for Huntsworth plc
_
Mike,
One common problem when including one NAnt file in another is that they are in
two different namespaces. If your included file is in a different namespace
than your calling file, then you aren't calling what you think you are calling.
Merrill
---
Hi all,
OK, maybe I'm being really dumb, but I can't seem to targets
from a project file I've 'd - is this supported? I'm using
RC3.
Cheers,
Mike
--
mike roberts | http://mikeroberts.thoughtworks.net/ |
http://www.thoughtworks.com/
---
SF.
12 matches
Mail list logo