ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bullington <shockr...@yahoo.com>
Subject Re: Perforce Optional Tasks
Date Thu, 20 Dec 2001 18:06:07 GMT
I'm not a perforce expert,  but did you define the taskdef as below?

<taskdef name="p4sync"
classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync" />

--Jim

--- Marcus <marcusz@criticalpointsoftware.com> wrote:
> 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" <shockride@yahoo.com>
> To: "Ant Users List" <ant-user@jakarta.apache.org>
> 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 <marcusz@criticalpointsoftware.com> 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: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>
> 


=====
"Those who live in the shelter of the Most High will find rest in the shadow of the Almighty.
This I declare of the Lord:  He alone is my refuge, my place of safety; he is my God, and
I am trusting himů"

Psalms 91:1-2 (New Living Translation)

__________________________________________________
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message