ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Dougherty <MDoughe...@XIFIN.Com>
Subject RE: Another uptodate question
Date Wed, 30 Oct 2002 17:36:12 GMT
I've looked at <dependset> and if the <ejbjar> worked the way I expected then I
could use it. But then again if <ejbjar> worked the way I expected I wouldn't need it.

Anyway, what I am looking for is to run the <ejbjar> target only if a class file that
matches${build.classes.dir}/**/ejb/**/*.class has been modified since the last execution of
<ejbjar>. The <ejbjar> task deposits the results of its compilation into ${build.ejb.dir}/**/ejb.
So what I would like is for the uptodate to tell me if the most recent file in ${build.classes.dir}/**/ejb/**/*.class
is more recent than the most recent file in ${build.ejb.dir}/**/ejb/**/*.class.

I think <dependset> would do exactly what I need if it didn't delete the files and just
set a property.


> -----Original Message-----
> From: Dominique Devienne []
> Sent: Wednesday, October 30, 2002 9:16 AM
> To: 'Ant Users List'
> Subject: RE: Another uptodate question
> Don't know anything about (1), and I've used <update> a few 
> times in the
> past for (2), but I don't understand the context exactly. Can 
> you elaborate
> what needs to get checked against what? I'm EJB/J2EE ignorant...
> Maybe <dependset> would help? It's more powerful than 
> <uptodate>, but is not
> a condition, and removes files... And doesn't even set a 
> property to find
> out if it removed anything...
> --DD
> -----Original Message-----
> From: Mike Dougherty [mailto:MDougherty@XIFIN.Com] 
> Sent: Wednesday, October 30, 2002 11:06 AM
> To: Ant Users (E-mail)
> Subject: Another uptodate question
> This is kind of a two part question.
> 1) I am using <ejbajr> with a nested <weblogic> to generate 
> our EJBs to an
> outputdir. I expected the task to check the files in srcdir 
> to see if they
> are uptodate before executing. However, it doesn't seem to be 
> doing that,
> even when I set rebuild="no". Are my expectations correct?
> 2) To work around the issue above I am trying to use 
> <uptodate>. What would
> be perfect is if I could do something like:
>     <uptodate property="ejbs.uptodate" >
>       <srcfiles dir="${build.classes.dir}">
>         <include name="**/ejb/**/*.class" />
>       </srcfiles>
>       <fileset dir="${build.ejb.dir}">
>         <include name="**/ejb/**/*.class" />
>       </fileset>
>     </uptodate>
> But that's not possible since <uptodate> doesn't support 
> nested filesets.
> I've tried using a <mapper> to accomplish the same thing but with no
> success. Any suggestions on how to get the desired effect?
> Thanks for your help,
> /mike 
> --
> To unsubscribe, e-mail:   
> <>
> For additional commands, e-mail: 
> <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message