Eric,

Presumably if the configuration is machine dependant, then you are only 
concerned with the properties on the command line changing as I would 
imaging the name of the build script, log file etc will always be the 
same?

In this case, have you considered defining the properties in a separate 
build script and using the <include> task to import them into a your 
script, rather than passing them in.  You could maintain a separate 
properties file for each machine, or you could maintain all machine 
configs in a single file, and pass in a single property to identify the 
machine and use the if attribute to determine the values defined.  This 
depends on how manyu machines you have I guess.

Cheers,

Bill Martin
Applications Architect

tel: 01789 200095
email: [EMAIL PROTECTED]








From "Eric Teutsch" <[EMAIL PROTECTED]>@lists.sourceforge.net 
Sent by: [EMAIL PROTECTED]
13/06/2007 15:18


To
<nant-users@lists.sourceforge.net>
cc

Subject
Re: [NAnt-users] long filenames in property overrides







response inline…
 
Thanks
Eric
 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
[EMAIL PROTECTED]
Sent: Wednesday, June 13, 2007 10:00
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] long filenames in property overrides
 
I would expect “-D:vb6base=c:\program files\microsoft visual studio\vb98” 
to work, but since you say the switches are in a file I don’t know if that 
will still be valid. (It would be from the command line).
[Eric Teutsch] 
That doesn’t work from the file.  I need the file since I have about 20 
‘switches’ to set things up for the specifics of the machine where the 
build is occurring.
 
Regards,
Richard
 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Eric 
Teutsch
Sent: Wednesday, June 13, 2007 9:54 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] long filenames in property overrides
 
Can anybody suggest how I can squeeze a long filename with spaces into a 
–D switch?  I’ve got a text file with a number of switches, like:
 
-buildfile:proj.build.xml
-logfile:proj.build.log
-D:vb6base=c:\program files\microsoft visual studio\vb98
 
But that last switch is no good, since it stops parsing the value upon 
first space.  So far I’ve specified the 8.3 equivalent name, but that’s 
just a work-around.  I’ve tried quotes in various places, but can’t make 
it work.
 
Any suggestions are most welcome.  Thanks!
 


* C O N F I D E N T I A L I T Y N O T I C E *
-----------------------------------------------------------
The content of this e-mail is intended solely for the use of the 
individual or entity to whom it is addressed. If you have received this 
communication in error, be aware that forwarding it, copying it, or in any 
way disclosing its content to any other person, is strictly prohibited. 
Peek Traffic Corporation is neither liable for the contents, nor for the 
proper, complete and timely transmission of (the information contained in) 
this communication. If you have received this communication in error, 
please notify the author by replying to this e-mail immediately and delete 
the material from any computer.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------------------------------------------------------------------
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


 


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.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------------------------------------------------------------------
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

Reply via email to