Marvellous, that will do the job nicely thanks Jarek. Cheers,
Bill -----Original Message----- From: Jaroslaw Kowalski [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 15:38 To: Bill Martin; [EMAIL PROTECTED] Subject: Re: [Nant-users] Properties files It is possible through <include> task. You simply have all your properties in a separate buildfile: properties.build ------------------------ <project name="my properties"> <property name="prop1" value="value1" /> <property name="prop2" value="value2" /> <property name="prop3" value="value3" /> <property name="prop4" value="value4" /> <property name="prop5" value="value5" /> </project> And you use it like this: main.build: ------------------------ <project name="my project"> <include buildfile="properties.build" /> <echo message="value of prop1 is ${prop1}" /> </project> Hope it helps. Jarek ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 19, 2004 4:16 PM Subject: [Nant-users] Properties files > Hello folks, > > I am new to Nant, but have done a bit in Ant compiling Java solutions. My > question is, is there any equivalent to the <property file> task that > existed in Ant? > > The <property> task in Nant only appears to let me set one property at a > time. I would like to set my build properties in a separate file and import > them into individual build scripts. Is this possible? If there is no > equivalent to <property file> in Nant, then could someone advise on the > recommended way of managing large numbers of common properties in Nant? > > Many thanks, > > Bill > > > > ______________________________________________________________ > > CONFIDENTIALITY NOTICE > > This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately. > > The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While Marlborough Stirling has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment. > > Marlborough Stirling plc, Registered in England and Wales > Registered No. 3008820, > Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH > Tel: 01242 547000 Fax: 01242 547100 > http://www.marlborough-stirling.com > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op�k > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
