ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Ashby <ant-u...@cashby.me.uk>
Subject Case sensitivity in mapper element
Date Mon, 20 Sep 2004 14:35:14 GMT
Hi,
	I'm trying to use copy to rename user/machine-specific files to the actual 
file names as follows:

    <copy todir="d:/test">
    	<fileset casesensitive="false"
    	        dir="resources/descriptors/${server.type}">
    		<include name="**/*.xml.${env.COMPUTERNAME}" />
    	</fileset>
    	<mapper type="glob" from="*.${env.COMPUTERNAME}" to="*.bak" />
    </copy>

	The env.COMPUTERNAME property isn't case sensitive and so this doesn't 
give a match if the file extension is a different case.

	This occurs on windows and linux.

TIA.

Christian Ashby
Spiralinks, Inc.
http://www.spl.com/

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


Mime
View raw message