ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: Resuming the build process
Date Wed, 21 Apr 2004 14:03:30 GMT
Normally this is accomplished by making each target
contain enough dependency analysis to avoid processing
any "source files" for which the "target files" are
up-to-date.  This way, all targets run, but don't do
anything unless they need to.  In some cases, you
might manufacture (touch) a target file if the
source-target paradigm doesn't quite fit what you are
trying to do.  But for the most part, in a build, you
start processing one or more files with the intent of
creating or updating one or more other files, right?


--- "Stratton, Jason" <>
> Hi All,
> We have a significantly long build process for our
> weekly/quarterly build. If an error occurs in any
> stage of the build, we currently have to re-run the
> whole build, which is probably what we want to do in
> most cases anyway, but when we are working on the
> build process itself for example, we would like to
> resume the build at the stage where the error
> occurred.
> Like most ant build files (that I've encountered
> anyway), we have a series of targets that depend on
> other targets, more or less like the following:
>   <target name="first">
> ...
>   <target name="second" depends="first">
> ...
>   <target name="third" depends="second">
> ...
> Etc.
> Now suppose an error occurs during the execution of
> the target "second". How would one resume the
> process with the "second" target, skipping the
> "first"?
> I can think of some brute force ways of doing. Such
> as creating a parallel series of targets that
> eliminate the depends attribute at the key stages.
> Or adding an if attribute to each target and adding
> an entry into the for each stage to
> skip. What I was hoping to get out of this enquiry
> is some elegant solutions that may have been
> developed.
> Thank you.
> Jason
> NOTICE: The information contained in this electronic
> mail message is confidential and intended only for
> certain recipients.  If you are not an intended
> recipient, you are hereby notified that any
> disclosure, reproduction, distribution or other use
> of this communication and any attachments is
> strictly prohibited.  If you have received this
> communication in error, please notify the sender by
> reply transmission and delete the message without
> copying or disclosing it.
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message