ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John.Casey" <jdcasey1...@yahoo.com>
Subject Re: preventing ant exit
Date Wed, 18 Jul 2001 20:40:47 GMT
this assumes that there is only one valid target to
run in the buildfile. This is not a very versatile way
to make builds IMHO. The alternative is to accept
keyboard input on which targets you want to run, and
any target in the build file would be legal. The only
problem with this is that either no target can depend
on the execution of another, or every target must have
depends statements that are complete enough to make
them valid starting points.

Conceptually, laying a buildfile bare for this type of
execution is probably not a good idea, because it
doesn't really allow for target/task reuse, and some
targets are naturally an intermediate part of the
process of building.

In order to solve all of these issues, you probably
would have to increase the complexity and decrease the
maintainability of your buildfile to the point of
being nearly unintelligible.

Just a few thoughts, of course.

Regards,
John Casey

--- TMotte@s-s-t.com wrote:
> 
> shoot i'm running 1.2 ghz/512mb here.... strange
> that it does load so slow.
> maybe a disk issue.
> 
> anyhow, if user presses enter then run repeat all
> targets. no pause between
> targets, wouldn't want that.
> 
> out of, well, impatience, i decided to try coding
> this in. it's a fairly
> simple hack, works really well. doesn't seem to leak
> memory over time or
> anything.
> 
> thanks
> troy
> 
> 
> 
> 
>                                                     
>                                                     
>         
>                     "T Master"                      
>                                                     
>         
>                     <tmaster@iknowled        To:    
> <ant-user@jakarta.apache.org>                       
>         
>                     geinc.com>               cc:    
>                                                     
>         
>                                             
> Subject:     Re: preventing ant exit                
>                 
>                     07/18/2001 02:18                
>                                                     
>         
>                     PM                              
>                                                     
>         
>                     Please respond to               
>                                                     
>         
>                     ant-user                        
>                                                     
>         
>                                                     
>                                                     
>         
>                                                     
>                                                     
>         
> 
> 
> 
> 
> That is similar to asking javac for keyboad input to
> quit after compiling.
> 
> Workarounds:  kill unnecessary processes on your box
> to allow more cpu time
> to ant; upgrade your box :-)
> 
> If the user did press <ente> which target would be
> run then?  The previous
> or the next in line?
> 
> 
> 
> ----- Original Message -----
> From: <TMotte@s-s-t.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Wednesday, July 18, 2001 12:58 PM
> Subject: preventing ant exit
> 
> 
> >
> > hi
> >
> > i'm new to ant...
> >
> > was just wondering if there was any reason nobody
> has added an option to
> > run ant in a loop. that is, the only way it seems
> to run is
> >
> >   $ant compile
> >     <barf>
> >   $ant compile
> >     <barf>
> >   $ant compile
> >   BUILD SUCCESSFUL
> >   $
> >
> > which is sort of slow on my pc because each time
> ant has to load
> > (impatience *is* one of the three pillars of
> programming.)
> >
> > better would be:
> >
> >   $ant compile
> >    <barf>
> >   q to quit, enter to continue:
> >    <barf>
> >   q to quit, enter to continue:
> >    BUILD SUCCESSFUL
> >   q to quit, enter to continue:Q
> >   $
> >
> > ?
> >
> > thanks
> > troy
> >
> 
> 
> 
> 
> 


=====
John Casey

jdcasey@digitalsymbiosis.net
Omni CodeWorks, Inc.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message