ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasen <>
Subject Re: conditional dependency logic based "uptodate"
Date Wed, 16 Jan 2002 18:24:17 GMT
Actually I need it not only for rmic but other things too. For example
we have an abstract class  generation tool, which takes an interface and
creates a default implementaion. I have an dptodate target:

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

and I want something like this:
  <target name="make-rmic" depends="determine-rmic"
    <java classname="com.mycompany.GenerateImplClass" fork="true"
       <arg line="${outdateInterfaceFileName}"/>

I dont want to run this generation tool on all the files, but ONLY the
outdated files.It is so easy to do this in "make". Does this feature
already exist or if not is there any plan to intriduce this in future
releases ? I dont want to compile everything, when only one
interfacefile has changed.


Stefan Bodewig wrote:
> On Tue, 15 Jan 2002, <> wrote:
> >   I want to selectively invoke rmic only on outdated files. How do I
> >   do that in ant ? For example:
> Which is what Ant's built-in rmic task does.  Why do you use myrmic
> instead of the built-in task?  Maybe it can be rewritten as yet
> another implementation of the rmic task (it is a facade backed by
> Sun's, Weblogic's and Kaffe's implementation ATM).
> Stefan
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

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

View raw message