ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re[2]: reverse glob mapper pattern?
Date Mon, 23 Sep 2002 16:37:25 GMT
Hello Stefan,

I think what Dominique means is that there should be a delete
capability equivalent to the copy capability.  for example...

This copy...

        <copy todir="${src.dir}" >
            <fileset dir="${src.dir}">
                <present present="srconly" targetdir="${src.dir}">
                    <mapper type="glob" from="sample.*" to="*" />
                </present>
            </fileset>
            <mapper type="glob" from="sample.*" to="*" />
        </copy>

Should be equivalent to this delete...
        
        <delete>
            <fileset dir="${src.dir}">
                <present targetdir="${src.dir}">
                    <mapper type="glob" from="sample.*" to="*" />
                </present>
            </fileset>
            <mapper type="glob" from="sample.*" to="*" />
        </delete>

one creates * files from sample.* files and the other deletes * files
that have a corresponding sample.* file.

Does that help make it clearer?

Jake

        
Monday, September 23, 2002, 9:01:21 AM, you wrote:

SB> On Mon, 23 Sep 2002, Dominique Devienne <DDevienne@lgc.com> wrote:

>> Shouldn't delete simply take a <mapper>, as does <copy>

SB> I don't think so, what would you use it for?  Isn't the <present>
SB> selector (which accepts a <mapper>) all that is needed (sorry, I
SB> haven't followed the thread very closely)?

SB> Stefan

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



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
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