ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <leslie.hug...@rubus.com>
Subject RE: p4 sync error
Date Mon, 20 May 2002 10:28:07 GMT
Hi,

The P4Sync task is just a wrapped around p4 sync so I'm surprised that
you're getting this. However, if Ant has files open that your target is
trying to update then it will go a bit pear shaped. You'll see this on
NT/W2K a lot (the delete task fails if you have a windows explorer viewing a
directory you try to delete for example) It shouldn't happen on U*ix as I
think this OS knows how to manage filehandles properly :-)

Anyway, I always spilt my system into the things I'm building and the things
that build them. I also have a "meta-build" system that builds my build
system - if that makes any sense. So, Ants CVS image is in it's own P4
depot, and is built by a different install (stable) of Ant. This is then
checked into my "toolshed" and used by whatever other projects I'm working
on.

Hope this helps - thanks for the feedback


Les




> -----Original Message-----
> From: Dominique Devienne [mailto:DDevienne@lgc.com]
> Sent: 19 May 2002 18:40
> To: 'Ant Users List'
> Subject: RE: p4 sync error
> 
> 
> Yeah, that's logical. I had the same problem with CVS. Had an 
> 'update' ANT
> target that ran 'cvs update', and since the ANT I was using 
> to run that
> target was itself under CVS control, and needed update, it 
> failed as well. I
> turned around the issue on Windows by using xcopy to copy the 
> ANT install
> under CVS control to another folder not under CVS control. 
> Xcopy is smart
> enough (with the right options) to not copy files that didn't 
> change. This
> all happens (fast) in the build.bat used to start the ANT build.
> 
> Probably the best solution is to check in ANT into a 
> different 'buildtools'
> module (updated/synced separately, not from ANT), so that you 
> never run into
> this problem.
> 
> --DD
> 
> -----Original Message-----
> From: Duncan McNaught [mailto:mcnaught@bea.com]
> Sent: Friday, May 17, 2002 1:55 PM
> To: Ant Users List
> Subject: Re: p4 sync error
> 
> 
> I think I narrowed down the problem - it happens when you try to sync
> ant, that you are using.
> This doesn't happen with a p4 sync, even if you are using the 
> ant, only
> with the ant p4 sync task.
> 
> Duncan McNaught wrote:
> 
> > I get this error when sync'ing to a clientspec:
> > It sync's half the view and then fails.
> >
> > BUILD FAILED
> >
> > D:\monkey\internal\monkey\build\perforce.xml:20: Problem exec'ing P4
> > command: er
> > ror: Fatal client error; disconnecting.
> >         at
> > 
> org.apache.tools.ant.taskdefs.optional.perforce.P4Base.execP4Command(
> > P4Base.java:180)
> >         at
> > 
> org.apache.tools.ant.taskdefs.optional.perforce.P4Sync.execute(P4Sync
> > .java:115)
> >
> > The line is
> > <p4sync force="yes" view="${monk.home}/...@${p4.have}"/>
> >
> > When I sync this through DOS it works fine, it also seems to work on
> > Solaris.
> >
> > p4 sync d:/base/...@356644
> >
> > Does anyone have more information on this Fatal Client error?
> > Is there a problem with the p4 sync task?
> > --Duncan
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message