Jim,

I do that and now I get:
$ ant -buildfile run_build.xml init
Buildfile: run_build.xml

init:
     [echo] syncing

BUILD FAILED

p:\cpdev\main\src\run_build.xml:29: Could not create task of type: p4Sync.
Commo
n 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).

Total time: 0 seconds

----- Original Message -----
From: "James Bullington" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 20, 2001 9:37 AM
Subject: Re: Perforce Optional Tasks


> Did you remember to put these files in your class path?  When I first
> started to use optional.jar,  this was my mistake.
>
> i.e. you need:
>
> CLASSPATH=%CLASSPATH%;/ant/lib/optional.jar;/ant/lib/oro.jar
>
> Hope this helps,
> Jim
>
> --- Marcus <[EMAIL PROTECTED]> wrote:
> > I have put in the optional.jar and the oro.jar file in /ant/lib and I
> > still get:
> > BUILD FAILED
> >
> > p:\cpdev\main\src\run_build.xml:23: Could not create task of type:
> > classpath. Co
> > mmon solutions are to use taskdef to declare your task, or, if this
> > is an option
> > al task, to put the optional.jar in the lib directory of your ant
> > installation (
> > ANT_HOME).
> >         at
> > org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:153)
> >
> >         at
> > org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
> > a:83)
> >         at org.apache.tools.ant.Task.perform(Task.java:216)
> >         at org.apache.tools.ant.Target.execute(Target.java:184)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:202)
> >         at
> > org.apache.tools.ant.Project.executeTarget(Project.java:601)
> >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:560)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:454)
> >         at org.apache.tools.ant.Main.start(Main.java:153)
> >         at org.apache.tools.ant.Main.main(Main.java:176)
> >
> > Thanks
> > Marcus
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to