Because mv is not an atomic operation in general. This is another issue that
has been
reported. You try to overwrite an existing jar and its seen as changed
before
its contents have been updated.

----- Original Message -----
From: "Julian Gosnell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 9:27 AM
Subject: Re: autodeployer bug RE: [JBoss-dev] problems with latest
jboss-jetty?


> Why not just ftp the file over somewhere else onto the
> same filesystem, then move it into the deploy
> directory in a single atomic action (mv/rename).
>
> This would not require any change to the Deployer.
>
> Jules
>
>  --- Scott M Stark <[EMAIL PROTECTED]> wrote: >
> This requires a new file for cases that don't have a
> > problem today. A better
> > solution is to allow one to lock a deployment jar by
> > creating a my.ear.lock
> > that tells the deployer to ignore the my.ear until
> > the lock is removed.
> >
> > ----- Original Message -----
> > From: "Jim Brownfield" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 15, 2001 8:51 AM
> > Subject: RE: autodeployer bug RE: [JBoss-dev]
> > problems with latest
> > jboss-jetty?
> >
> >
> > > Would this still leave a problem for people
> > deploying over modems (I do
> > this
> > > all the time)?  What if deployment were triggered
> > by an empty auxiliary
> > file
> > > named like the original file (something like
> > my-ear.dpy for my.ear).  Then
> > > you could ftp (or whatever) the file to the deploy
> > directory and
> > immediately
> > > ftp the empty file afterwards.  The deployer would
> > be scanning for ".dpy"
> > > files.
> > >
> >
> >
> >
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> >
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to