That would be fine, Erik, but how could I compare the source/target of files generated 
by XDoclet in the ejbdoclet task?

Let's say I've got the following folder:

C:\dev\project\xdoclet-gen

under which I've got the interfaces and utility classes generated by XDoclet. How 
could I use <uptodate> to compare the src already there and the being generated ones?

Marco



> On Mar 30, 2004, at 4:46 AM, Marco Tedone wrote:
> Hi, my boss would like to generate the XDoclet generated code for our 
> EJBs only when the "eventually generated" code would be different from 
> the "already generated" one, thus avoiding lost of time.
>
> Has anyone something to reccomend?

XDoclet itself does dependency quite well, although it still takes a 
little time to process that.  When things are up-to-date it definitely 
runs much faster.  But, to speed things up even more, you can use 
<uptodate> to check source/target files, set a property, and then use 
an if/unless clause on a target to bypass XDoclet generation.

   Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


<




----------------------- Original Message -----------------------
 
From: Erik Hatcher <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Date: Tue, 30 Mar 2004 06:26:19 -0500
Subject: Re: Generating XDoclet stuff only if changed
 
On Mar 30, 2004, at 4:46 AM, Marco Tedone wrote: > Hi, my boss would like to generate 
the XDoclet generated code for our > EJBs only when the "eventually generated" code 
would be different from > the "already generated" one, thus avoiding lost of time. > > 
Has anyone something to reccomend? XDoclet itself does dependency quite well, although 
it still takes a little time to process that. When things are up-to-date it definitely 
runs much faster. But, to speed things up even more, you can use to check 
source/target files, set a property, and then use an if/unless clause on a target to 
bypass XDoclet generation. Erik 
--------------------------------------------------------------------- To unsubscribe, 
e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
______________________________________________________________________ This email has 
been scanned by the MessageLabs Email Security System. For more information please 
visit http://www.messagelabs.com/email 
______________________________________________________________________ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to