ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duane Mattos <DMat...@maplesoft.com>
Subject p4editing multiple files or RE: applying mappers to fileset
Date Tue, 24 Sep 2002 21:48:01 GMT
This stems from the fact I don't believe I can use wildcards in the p4edit task.
(Someone correct me if I'm wrong, please!) So I do want to iterate on files that
do exist.  :-) Really, it isn't really foreach's responsibility, but it comes
close to being able to help.  

<mapper> would make a nice <foreach> element for other tasks too I imagine...

Anyone have any ideas how I can get a flattened list of file names from a
fileset? or iterate over a directory in Perforce?

thanks!

dM




   

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Tuesday, September 24, 2002 4:22 PM
To: Ant Users List
Subject: Re: applying mappers to fileset


Again, a fileset only works on *existing* files, so flattening it would 
give a set of filenames that don't exist (yet?).

It makes sense for <foreach> to support a mapper though.

	Erik


Duane Mattos wrote:
> I guess I'd like to create a new fileset from an old one.  I'd like to use
> foreach on the new fileset (or the 'right' side of the map, no longer care
about
> the left).  I don't think the perforce tasks support wildcards, so I thought I
> could iterate through a fileset, but I need to flatten the filenames. 
> 
> dM
> 
> -----Original Message-----
> From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
> Sent: Tuesday, September 24, 2002 3:45 PM
> To: Ant Users List
> Subject: Re: applying mappers to fileset
> 
> 
> No.  That doesn't really make sense in a general sense, at least to me. 
>   A fileset is a set of existing files, so mapping them doesn't preserve 
> that meaning.
> 
> Mappers are associated directly with several tasks, such as <copy>.
> 
> What do you have in mind specifically?
> 
> 	Erik
> 
> 
> 
> Duane Mattos wrote:
> 
>>Can I apply a mapper (flatten in my case) to an arbitrary fileset?  How do I
> 
> do
> 
>>so?
>>
>>thanks!
>>
>>dM
>>
>>--
>>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>>
>>
>>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 


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

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


Mime
View raw message