ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Hassman <>
Subject Re: simplify copy with regexpmapper (mapper/regexp)
Date Fri, 17 Sep 2010 23:21:29 GMT
What about something like this:

    <fileset id="sources" dir="${src.dir}">
        <include name="**/*.as"/>
    <pathconvert property="sourceClasses" refid="sources" pathsep=" ">
            <replacestring from="${src.dir}/" to=""/>        <!-- Strip off 
directory -->

 I stole this from the ANTLR build script for actionscript target.  It does have 
a couple other replacestring elements, but this is the one you would be 
interested in "removing" high level directory structure.

Wayne Hassman

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message