ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rogers" <jason.rog...@tumbleweed.com>
Subject RE: mapper and uptodate examples
Date Wed, 10 Oct 2001 17:04:24 GMT
Try this... (note that you must have a regexp implementation in your
$ANT_HOME/lib directory)

<target name="iiopStub.checkUptoDate">
	
	<uptodate property="iiopStub.isUpToDate" >
    		<srcfiles dir="${src}"> 
			<include name="x/y/z/A.java"/>
			<include name="x/y/z/B.java"/>			
			<include name="x/y/z/C.java"/>
		</srcfiles> 
    		<mapper type="regexp"
from="^(a-zA-Z*)\/(a-zA-Z*)\/(a-zA-Z*)\/(a-zA-Z*)\.java"
to="${build}/\1\2\3\4.class"/>
  	</uptodate>

	<echo message="IIOP stubs are up to date: ${iiopStub.isUpToDate}"/>
</target>

-jason


Mime
View raw message