ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: includes property not working
Date Wed, 02 Mar 2005 15:18:50 GMT
Have you tried simply using includesfile rather than
includes with your fileset?  It should expand
properties and everything.

-Matt

--- David Resnick <abunetta@gmail.com> wrote:

> I'm trying to include a list of files to delete in a
> text file which is read
> into a property (with properties expansion) and then
> used in the includes
> property of a fileset in a delete task. For some
> reason when there are line
> breaks in the text file, this isn't working!
> 
> 		<loadfile property="to.delete"
> srcFile="ant.delete.txt">
> 			<filterchain>
> 				<expandproperties />
> 			</filterchain>
> 		</loadfile>
> 		<delete quiet="false" verbose="true"
> includeEmptyDirs="true">
> 			<fileset dir="${dir.cab.work}"
> includes="${to.delete}" />
> 		</delete>
> 
> If the list in the text file is separated by commas,
> it works fine. If I put
> each pattern on its own line none of the patterns
> are used.
> 
> I've tried doing all sorts of line endings (unix,
> windows - I'm on windows
> BTW). When I echo the to.delete property, I can see
> that it holds exactly
> what it should. If I then put that text (including
> line breaks) as the
> includes property, it works fine.
> 
> I've wasted a ton of time on this but am not able to
> get it working.
> 
> Thanks!
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message