Erik -- In our build XML files, we add a taskdev for P4Sync: ... <taskdef name="P4Sync" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync"/> ... <target name="sync" depends="init"> <P4Sync view="//depot/${p4.branch}/..."/> </target> Adding the taskdef should take care of Ant's complaint. Tim Meals Kazandjian Erik wrote: > 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 -- Tim Meals Web Applications Developer mailto:[EMAIL PROTECTED] direct: 925-253-6515 fax: 925-253-4599 http://www.intraware.com operator: 925-253-4500 Intraware ... Control Your Technology
begin:vcard n:Meals;Tim tel;cell:925-381-8780 tel;work:925-253-6515 x-mozilla-html:TRUE url:http://www.intraware.com org:<A HREF="http://www.intraware.com"><IMG SRC="http://www.intraware.com/images/tempgifs/logotype.gif" BORDER="0" WIDTH="145" HEIGHT="34" ALT="Intraware, Inc."><BR CLEAR="left">Intraware, Inc.</A>;eServices adr:;;25 Orinda Way;Orinda;CA;94563;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Web Applications Developer x-mozilla-cpt:;-31712 fn:Tim Meals end:vcard