Well... one of the first suggestions someone (Ben
Burgess?) made to you was to get rid of your antcalls.
 They eat time and memory and can be worked around
roughly 99.5% of the time:

<target name="MyApp"
depends="retrieve-frm-cvs,create-ear-file" />

assuming create-ear-file depends on create-war-file,
etc., etc. as you sort of comment below.  Additionally
you might want to rethink such things as having
compile always depend on clean.  Of course your builds
will take the maximum amount of time possible if you
always retrieve your code from cvs, clean, compile,
etc... part of the point of a build tool is that the
"normal" thing to do is an incremental build.  These
are generally much faster than a full (clean) build.

-Matt

--- Hanmay Udgiri <[EMAIL PROTECTED]> wrote:

> sorry its typo mistakes
> 
> On 7/20/06, Hanmay Udgiri
> <[EMAIL PROTECTED]> wrote:
> >
> > I am Giving the code we are using for creating EAR
> file.
> > it is small any file.......
> >
> > <target name="MyApp"
> >     <antcall target="clean"/>
> >     <antcall target="init"/>
> >     <antcall target="retrieve-frm-cvs"/>
> >     <antcall target="compile"/>
> >     <antcall target="create-resouce-jar"/>
> >     <antcall target="create-delegate-jar"/>
> >     <antcall target="create-ejb-jar"/>
> >     <antcall target="create-war-file"/>
> >     <antcall target="create-ear-file"/>
> > </target>
> > <target name="clean">
> >     .......
> > </target>
> > <target name="init" depends="clean">
> >     ......
> > </target>
> > <target name="init" depends="clean">
> >     ......
> > </target>
> > <target name="retrieve-frm-cvs" depends="init">
> >     ......
> > </target>
> > <target name="compile" depends="init,clean">
> >     ......
> > </target>
> > <target name="create-resouce-jar"
> depends="compile">
> >     ......
> > </target>
> > <target name="create-delegate-jar"
> depends="compile">
> >     ......
> > </target>
> > other jar steps.........
> >
> > <target name="create-ear-file"
> > depends="create-delegate-jar,.........all-jar
> dependancies...."/>
> >     ........
> > </target>
> >
> > Any suggestion for improvements will be of great
> HELP.
> >
> >
> > Thanks and Regards
> > Hanmayya Udgiri
> >
> >
> >
> >
> >
> >
> > On 7/20/06, Hanmay Udgiri
> <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi
> > > Actually It uses to take around 7-8 minutes but
> now it takes around 14
> > > min.
> > > One factor is increase on No of JAVA files.
> > > Earlier we had less no of files,now we have
> twice of earlier.
> > > Is this could be one of the reaseon????
> > >
> > >
> > >
> > >
> > > On 7/19/06, Martin Gainty < [EMAIL PROTECTED]>
> wrote:
> > > >
> > > > ant -d will show the diags..
> > > > HTH,
> > > > Martin --
> > > >
>
*********************************************************************
> > > > This email message and any files transmitted
> with it contain
> > > > confidential
> > > > information intended only for the person(s) to
> whom this email message
> > > > is
> > > > addressed.  If you have received this email
> message in error, please
> > > > notify
> > > > the sender immediately by telephone or email
> and destroy the original
> > > > message without making a copy.  Thank you.
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Conor MacNeill" <[EMAIL PROTECTED]>
> > > > To: "Ant Users List" < user@ant.apache.org>
> > > > Sent: Wednesday, July 19, 2006 10:38 AM
> > > > Subject: Re: Ant build Time
> > > >
> > > >
> > > > >
> > > > > Hanmay Udgiri wrote:
> > > > >> Hi
> > > > >> I have a ant build which takes around 15
> minutes.
> > > > >> Do we have any tips to reduce the time
> taken for the total build
> > > > >>
> > > > >
> > > > > That's not a lot of info to go on. Can you
> see which steps in the
> > > > build
> > > > > are taking a long time and what are they?
> Are you doing multiple
> > > > > compilations? Could they be done in one
> operation?
> > > > >
> > > > > Conor
> > > > >
> > > > >
> > > >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > > >
> > > > >
> > >
> > >
> > >
> > >
> > > --
> > > Thanks and Regards
> > > Hanmayya Udgiri
> > >
> >
> >
> >
> > --
> > Thanks and Regards
> > Hanmayya Udgiri
> >
> 
> 
> 
> -- 
> Thanks and Regards
> Hanmayya Udgiri
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to