ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasen <>
Subject conditional dependency logic based "uptodate"
Date Wed, 16 Jan 2002 03:14:23 GMT
Hi All,
  I want to selectively invoke rmic only on outdated files. How do I do
that in ant ? For example:

  <target name="determine-rmic">
    <uptodate property="rmic.notRequired">
      <srcfiles dir="${src}">
        <include name="com/mycompany/rmi/*.java"/>
      <mapper type="glob" from="*.java" to="${classdir}/*"/>
  <target name="make-rmic" depends="determine-rmic"
    <myrmic dir="${src}/com/mycompany/rmi/*.java"/>

But this logic invokes target "make-rmic", which runs rmi compiler on
ALL the java files. I want to modify the logic so that only outdated
files are compiled. is there any way in ant to accomplish this ? 


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message