Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
|
NAnt For discussing the NAnt .NET build tool. When posting a question, please specify the version of NAnt you are using.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the NAnt section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2007, 01:11 AM
Authorized User
 
Join Date: Jun 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to connect2sandep
Default custom task to read from property file in NANT

Ant has property task which has file attribute to read file from properties files. Is there a similar feature in NANT. I tried the include buildfile but it is very cumbersome. Is there a custom NANT task that can automate reading properties from a separate text file.
Thanks in advance
 
Old August 9th, 2007, 02:47 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I just looked at the Ant docs to see what you were referring to and I'm pretty sure there isn't such a task in Nant.

The task doesn't seem like it would be too difficult to port to Nant as a custom task. I wouldn't be at all surprised to find that someone else has already done this.

As for me, an include buildfile with the property tasks seems to work fine.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Server Control....Custom Property Editor ZArrinPour ASP.NET 1.0 and 1.1 Basics 1 June 15th, 2010 11:30 AM
How to read parent Package in Script Task rarediamond25 SQL Server 2005 3 April 12th, 2007 10:01 AM
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM
Update file from CVS using Nant tool jilly BOOK: ASP.NET Website Programming Problem-Design-Solution 1 May 31st, 2006 08:09 PM
Read a property file Sindhu EJB 0 December 1st, 2005 06:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.