If you specify p4user p4port or p4client then p4base uses the -u -p and -c
switches to pass this info on. You do not need to comment out these lines
as, if you do not set these attributes in your xml file, p4base ignores them
and uses those specified by p4 set.

What version of client are you using? p4 -V will give you this. I think the
problem is with you p4 install not the Ant tasks. But without this info, we
can't really proceed.

Les


> -----Original Message-----
> From: Kazandjian Erik [mailto:[EMAIL PROTECTED]]
> Sent: 29 June 2001 13:38
> To: '[EMAIL PROTECTED]'
> Subject: RE: P4 Optional Tasks
> 
> 
> Hi Les,
> 
> I finaly mad it through. To get it work I had to comment out 
> the following 3
> lines in the P4Base.java file
> 
> commandline.createArgument().setValue(P4Port);
> commandline.createArgument().setValue(P4User);
> commandline.createArgument().setValue(P4Client);
> 
> Is this a known feature or am I missing some configuration somewhere ?
> 
> Thanks for your patience
> 
> Erik
> 
> -----Original Message-----
> From: Les Hughes [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 28 juni 2001 16:50
> To: '[EMAIL PROTECTED]'
> Subject: RE: P4 Optional Tasks
> 
> 
> 
> Well, the error handling in p4base is only as good as the 
> reporting from p4
> and yes, it does need a bit of sorting out. I use the -s flag 
> to get p4 to
> add info: error: exit: etc to its output. However, if the p4 
> command is
> badly formed, then you just get "Perforce client error"...
> 
> Try running p4 -s  on the commandline (you should get some 
> help text). If
> this fails then it's your p4 client that needs upgrading to 
> at least V99.2
> (p4 -V will give you your version) Look for the line that 
> says something
> like "Rev. P4/NTX86/2000.2/19837 (2001/01/03)."
> 
> Also, make sure you have the latest Ant-P4 source (grab a 
> nightly build) I'm
> not aware of any problems with 1.3 but you may have found one :-)
> 
> Les
> 
> 
> > -----Original Message-----
> > From: Kazandjian Erik [mailto:[EMAIL PROTECTED]]
> > Sent: 28 June 2001 15:12
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: P4 Optional Tasks
> > 
> > 
> > Hi Les,
> > 
> > I made a small sync.xml (Which I added to this mail) When I run ant
> > -buildfile sunc.xml -verbose 
> > 
> > I get :
> > 
> > 
> > >Ant version 1.3 compiled on March 2 2001
> > 
> > >Buildfile: sync.xml
> > >Detected Java Version: 1.3
> > >Detected OS: Linux
> > >parsing buildfile /home/erik/square/src/sync.xml with URI =
> > >file:/home/erik/square/src/sync.xml
> > >Project base dir set to: /home/erik/square/src
> > >Build sequence for target `sync' is [sync]
> > >Complete build sequence is [sync]
> > 
> > >sync:
> > >   [p4sync] Execing sync  
> > >   [p4sync] Execing [Ljava.lang.String;@3753f8
> > >   [p4sync] Unknown command.  Try 'p4 help' for info.
> > 
> > >BUILD SUCCESSFUL
> > 
> > >Total time: 8 seconds
> > 
> > It looks like the build has succeeded (BUILD SUCCESSFUL) but 
> > I am a bit
> > worried about the messages that p4sync gives me. Is this normal?
> > 
> > Regards
> > Erik
> > 
> > -----Original Message-----
> > From: Les Hughes [mailto:[EMAIL PROTECTED]]
> > Sent: donderdag 28 juni 2001 10:58
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: P4 Optional Tasks
> > 
> > 
> > 
> > The p4 tasks are taskdef'd as <p4xxx> not <P4Xxxx> Try 
> > <p4sync> (all lower
> > case).
> > Failing that, run ant with the -verbose or -debug switches 
> > and post the
> > results.
> > 
> > Bye,
> > 
> > Les
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Kazandjian Erik [mailto:[EMAIL PROTECTED]]
> > > Sent: 28 June 2001 07:23
> > > To: 'Ant User'
> > > Subject: P4 Optional Tasks
> > > 
> > > 
> > > Hi,
> > > 
> > > I'm trying to use P4Sync in my ant script to synchronise all 
> > > my source files
> > > before starting to compile. I already downloaded the 
> > > optional.jar and put it
> > > in my lib directory under my ANT_HOME. However every time 
> > > when I try to call
> > > P4Sync I get the following message
> > > 
> > > /home/erik/square/src/build.xml:25: Could not create task of 
> > > type: P4Sync.
> > > Common solutions are to use taskdef to declare your task, or, 
> > > if this is an
> > > optional task, to put the optional.jar in the lib directory 
> > > of your ant
> > > installation (ANT_HOME).
> > > 
> > > The complete P4 command I call is the following
> > > 
> > >   <P4Sync user="${myenv.P4USER}"></P4Sync>
> > > 
> > > Does anybosy know what I'm doing wrong
> > > 
> > > Erik
> > > 
> > 
> 

Reply via email to