Re: [NAnt-users] Load properties from a file

2006-07-28 Thread Steve Roy
Hi,

I was interested in doing this also...Did someone locate a solution for this 
in NANT?

- steve


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Load properties from a file
Date: Tue, 25 Jul 2006 08:57:32 +0100

Hi Brad,

With Ant, you could specify a file in the property task to load a set of
properties from a file, but in NAnt you have to do this through using the
include task (as you guessed) to include the properties file.

One thing to watch out for (as it often comes up on the list) is if you
are using namespaces in your files, make sure that the namespace in your
properties file is the same as the one you are including it in otherwise
the properties won't be resolved.

HTH,

Bill








 From Brass Tilde [EMAIL PROTECTED]@lists.sourceforge.net
Sent by: [EMAIL PROTECTED]
25/07/2006 02:34


To
nant-users@lists.sourceforge.net
cc

Subject
[NAnt-users] Load properties from a file







I could have sworn that I saw a task in either NAnt or NAntContrib that
would load a set of properties from a separate file.  Since I can't find
it
in either NAnt's or NAntContrib's current documentation, I presume that I
was halucinating.  If I'm not, would someone please point me to it?

If there isn't one, it looks like I could use the include / task to
accomplish the same thing, i.e. create a file with the properties I want,
but not other targets or tasks, and include it in the current build file,
correct?

Thanks,
Brad


-
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

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__






IMPORTANT
The information contained in this e-mail and any attachments is intended for 
the addressee only
and may contain legally privileged or confidential information. If you are 
not the intended
recipient you must not use, disclose, copy, distribute, alter, or take any 
action in reliance
on the information and Avon Insurance plc will not accept liability for any 
loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or 
representation as to its
accuracy or reliability. If you are not the addressee, please notify us 
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and 
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system 
and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a 
result of any virus being passed on.

Avon Insurance plc (No. 209606).
Registered in England. Registered Office: Arden Street, Stratford upon Avon, 
Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British 
Insurers.

*For security and training purposes, telephone calls may be recorded and 
monitored.


-
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



-
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] Load properties from a file

2006-07-28 Thread Roy, Steven

For the purpose of sharing with the user list...I found a technique
posted elsewhere.  Simply include a property only buildfile in the
master buildfile...

include buildfile=environment.build /

The included build file contains only properties:

?xml version=1.0?
project name=My project environment properties default=
  
  property name=output-dir value=c:\build\myproject-2.0/
  property name=dot-net-framework-bin
value=C:\windows\Microsoft.NET\Framework\v2.0.50727/
  property name=env-web-tier-virtual-dir-name value=MyDotNetWeb/
  property name=mailhost value=mailhost.mycompany.com/

/project

- steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Roy
Sent: Tuesday, July 25, 2006 3:40 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Load properties from a file

Hi,

I was interested in doing this also...Did someone locate a solution for
this 
in NANT?

- steve


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Load properties from a file
Date: Tue, 25 Jul 2006 08:57:32 +0100

Hi Brad,

With Ant, you could specify a file in the property task to load a set
of
properties from a file, but in NAnt you have to do this through using
the
include task (as you guessed) to include the properties file.

One thing to watch out for (as it often comes up on the list) is if you
are using namespaces in your files, make sure that the namespace in your
properties file is the same as the one you are including it in otherwise
the properties won't be resolved.

HTH,

Bill








 From Brass Tilde [EMAIL PROTECTED]@lists.sourceforge.net
Sent by: [EMAIL PROTECTED]
25/07/2006 02:34


To
nant-users@lists.sourceforge.net
cc

Subject
[NAnt-users] Load properties from a file







I could have sworn that I saw a task in either NAnt or NAntContrib that
would load a set of properties from a separate file.  Since I can't find
it
in either NAnt's or NAntContrib's current documentation, I presume that
I
was halucinating.  If I'm not, would someone please point me to it?

If there isn't one, it looks like I could use the include / task to
accomplish the same thing, i.e. create a file with the properties I
want,
but not other targets or tasks, and include it in the current build
file,
correct?

Thanks,
Brad



-
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=DEVDE
V
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__






IMPORTANT
The information contained in this e-mail and any attachments is intended
for 
the addressee only
and may contain legally privileged or confidential information. If you
are 
not the intended
recipient you must not use, disclose, copy, distribute, alter, or take
any 
action in reliance
on the information and Avon Insurance plc will not accept liability for
any 
loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty
or 
representation as to its
accuracy or reliability. If you are not the addressee, please notify us 
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and

outgoing email messages for
the purposes of investigating or detecting unauthorised use of its
system 
and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a

result of any virus being passed on.

Avon Insurance plc (No. 209606).
Registered in England. Registered Office: Arden Street, Stratford upon
Avon, 
Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of
British 
Insurers.

*For security and training purposes, telephone calls may be recorded and

monitored.



-
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=DEVDE
V


___
NAnt-users mailing list
NAnt-users

Re: [NAnt-users] Load properties from a file

2006-07-25 Thread William_Martin

Hi Brad,

With Ant, you could specify a file in the property
task to load a set of properties from a file, but in NAnt you have to do
this through using the include task (as you guessed) to include
the properties file.

One thing to watch out for (as it often comes up on the
list) is if you are using namespaces in your files, make sure that the
namespace in your properties file is the same as the one you are including
it in otherwise the properties won't be resolved.

HTH,

Bill










From Brass Tilde [EMAIL PROTECTED]@lists.sourceforge.net

Sent by: [EMAIL PROTECTED]
25/07/2006 02:34





To
nant-users@lists.sourceforge.net


cc



Subject
[NAnt-users] Load properties from a file









I could have sworn that I saw a task in either NAnt
or NAntContrib that
would load a set of properties from a separate file. Since I can't
find it
in either NAnt's or NAntContrib's current documentation, I presume that
I
was halucinating. If I'm not, would someone please point me to it?

If there isn't one, it looks like I could use the include / task
to
accomplish the same thing, i.e. create a file with the properties I want,
but not other targets or tasks, and include it in the current build file,
correct?

Thanks,
Brad


-
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

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


 
IMPORTANT The information contained in this e-mail and any attachments is intended for the addressee onlyand may contain legally privileged or confidential information. If you are not the intendedrecipient you must not use, disclose, copy, distribute, alter, or take any action in relianceon the information and Avon Insurance plc will not accept liability for any loss or damage howsoeverarising, directly or indirectly in reliance on it and gives no warranty or representation as to itsaccuracy or reliability. If you are not the addressee, please notify us immediately on 01789 202121*and delete the material from your computer and destroy any copies.Avon Insurance plc reserves the right to monitor and record incoming and outgoing email messages forthe purposes of investigating or detecting unauthorised use of its system and ensuring its effective operation.Avon Insurance plc will not accept liability for any loss or damage as a result of any virus being passed on.Avon Insurance plc (No. 209606). Registered in England. Registered Office: Arden Street, Stratford upon Avon, Warwickshire CV37 6WA.Authorised and regulated by the Financial Services Authority.A member of the NFU Mutual group of companies and the Association of British Insurers.*For security and training purposes, telephone calls may be recorded and monitored.-
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