ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Can Ant exit itself? solution not correct
Date Fri, 20 Aug 2004 05:02:45 GMT
You could add a 
  unless="quit"
on each target. And when you want to quit, set that property. 
(not tried)


Jan


> -----Urspr√ľngliche Nachricht-----
> Von: Yiling Lu [mailto:ylu@invoqsystems.com]
> Gesendet am: Freitag, 20. August 2004 02:06
> An: Ant Users List
> Betreff: RE: Can Ant exit itself? solution not correct
> 
> Hi,
> 
> My posted "solution" in the previous email is NOT correct.
> 
> Still in the quest for the solution of "make Ant exit gracefully"
> 
> Thank you
> 
> 
> Yiling
> 
> -----Original Message-----
> From: Yiling Lu 
> Sent: Thursday, August 19, 2004 4:51 PM
> To: Ant Users List
> Subject: RE: Can Ant exit itself?
> 
> This is a good question.
> You never know what people are going to do with Ant ;-)
> 
> In short, my build starts with check outing properties files from
> repository for each user@machine-name, if the 
> user@machine-name does not
> exist in the 
> Reposity in the first place, then Ant script will check out a default
> property file from the repository. At this point, I ask the user if
> he/she
> Wants to modify this default property file or not. If the 
> answer is no,
> then
> The build will continue. If the answer is yes, then the script is
> suppose to exit gracefully with some message.
> 
> When users starts to use Ant extensively, there will comes use cases
> that have not been thought about.
> 
> I found my solution. Create a target that does nothing, then call this
> target using antcall. Ant will exit gracefully this way.
> 
> Thank you for all the responses.
> 
> Yiling
> 
> -----Original Message-----
> From: Charles Hudak [mailto:charles.hudak@cardionet.com] 
> Sent: Thursday, August 19, 2004 4:24 PM
> To: Ant Users List
> Subject: RE: Can Ant exit itself?
> 
> Why do you want user interaction in your build script? It's 
> one thing to
> prompt a user for properties but Ant is not a UI and IMHO 
> build scripts
> should AUTOMATE your builds, not rely on user interaction and 
> prompting.
> This can usually all be done with property files for each build target
> (e.g. production, development, etc) that allow user overrides 
> via a file
> placed in their home directory. If a user quits in the middle of a
> build, was the build really 'Succesful'?
> 
> > -----Original Message-----
> > From: Yiling Lu [mailto:ylu@invoqsystems.com] 
> > Sent: Thursday, August 19, 2004 4:17 PM
> > To: Ant Users List
> > Subject: RE: Can Ant exit itself?
> > 
> > 
> > I am using Ant 1.6.2
> > 
> > When I do <fail/> as the Ant manual suggested, the script 
> > actually failed for real. The reason is that I did not supply 
> > a message. But I do not want 
> > To supply a message and let ant to print out the message as 
> > fail information.
> > 
> > In my case, I want to exit the program normally. <fail/> does 
> > not seem To do the work.
> > 
> > 
> > 
> > Yiling
> > 
> > -----Original Message-----
> > From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com] 
> > Sent: Thursday, August 19, 2004 3:35 PM
> > To: Ant Users List
> > Subject: RE: Can Ant exit itself?
> > 
> > <fail> task.
> > 
> > -Rob A
> > 
> > > -----Original Message-----
> > > From: Yiling Lu [mailto:ylu@invoqsystems.com]
> > > Sent: Thursday, August 19, 2004 2:48 PM
> > > To: Ant Users List
> > > Subject: Can Ant exit itself?
> > > 
> > > 
> > > Hi folks,
> > > 
> > >  
> > > 
> > > I am using Ant to prompt the user to choose continue or 
> > quit the ant 
> > > script.
> > > 
> > >  
> > > 
> > > I could not find an Ant task that will quit the Ant script 
> > gracefully. 
> > > Could you please
> > > 
> > > Help me out here?
> > > 
> > >  
> > > 
> > > Thank you.
> > > 
> > >  
> > > 
> > > Yiling
> > > 
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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