ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig, Michael" <Michael.Lud...@delphi-mb.de>
Subject RE: simplify copy with regexpmapper (mapper/regexp)
Date Sat, 18 Sep 2010 14:06:24 GMT
> What about something like this:
> 
>     <fileset id="sources" dir="${src.dir}">
>         <include name="**/*.as"/>
>     </fileset>
>     
>     <pathconvert property="sourceClasses" refid="sources" pathsep=" ">
>         <filtermapper>
>             <replacestring from="${src.dir}/" to=""/>        
> <!-- Strip off directory -->
>         </filtermapper>
>     </pathconvert>
> 
> 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.

Thanks, Wayne.

I downloaded the antlr-3.1.3.tar.gz tarball and located the build script
inside:

  antlr-3.1.3\runtime\ActionScript\project\build.xml

But there is no application of this construct to the <copy> task as far
as I can see. How would you apply it to the <copy> task?

Michael

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


Mime
View raw message