ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: Use of Sleep
Date Mon, 01 Jun 2009 18:46:19 GMT
On Mon, Jun 1, 2009 at 12:48 PM, Eric Fetzer <elstonkers@yahoo.com> wrote:

> Will "updates" get rid of files that got deleted from the repository?


It all really depends upon the revision control system you're using. If the
revision control system tracks directories (like Subversion and ClearCase),
the answer is "yes", it will remove directories when they have been deleted.
If you use something like CVS, there's a special parameter on the "update"
command that removes empty directories. A few revision control systems might
not.

I find that if you do a few things, you'll be good about 99% of the time:
Don't update source files. Try to keep your built object files (like
classfiles) and your source files in separate directories. And, have a good
"clean" target. I usually do a clean before each build to eliminate rebuild
issues.

Where things mess up is when there's a major revamping of the whole project
structure where directories and files are  renamed, deleted, and moved. In
those cases, I am usually forced to do a checkout instead of an update.

Of course, the only way to be really, really sure is to do a checkout, but
if checkouts take hours, and your build process drags out, you'll end up
doing more harm than good.

A good compromise is to do an update on nomal continuous test builds for
speed, and when you actually build the release, use a clean checkout. That
will give you the development speed, but make sure your customers are
getting exactly everything in the build.

-- 
David Weintraub
qazwart@gmail.com

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