ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: how can I copy a directory of files to lower case equivalents?
Date Tue, 02 Oct 2007 12:30:41 GMT
 

Hi,


-----Original Message-----
From: Alx G [mailto:glubbah@yahoo.co.uk] 
Sent: Tuesday, October 02, 2007 1:10 PM
To: user@ant.apache.org
Subject: how can I copy a directory of files to lower case equivalents?

/*
Hi,

Does anyone know if there's anything in Ant that can copy files from a
directory to another directory but change all the file names to lower
case?
*/

also possible with filtermapper, taken from antmanual
slightly adapted =

<!-- // Properties -->
<property name="srcdir" value="Y:/test"/>
<property name="destdir" value="Y:/test_"/>
<!-- Properties // -->

<target name="depends">
  
<copy todir="${destdir}">
  <fileset dir="${srcdir}" includes="**/*.*"/>
  <filtermapper>
    <scriptfilter language="beanshell">
      self.setToken(self.getToken().toLowerCase());
    </scriptfilter>
  </filtermapper>
</copy>

but dir's get lowercase also

Regards, Gilbert

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


Mime
View raw message