ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abridgel <Andy.Bridge...@gmail.com>
Subject Problems creating my own ant task
Date Wed, 03 Nov 2010 17:40:02 GMT

Hi I'm new to creating ant tasks - I wrote a simple hello world java program,
created a antbuild.xml - I jarred it up as follows

/hello/tasks/hello.class
/hello/takks/antlib.xml

I put the jar in my ANT_HOME/lib

At the top of my buildfile I define the xmlns in the project tag
xmlns:test="antlib:hello.tasks"

The target in antbuild.xml is "jack"

I call the target in my build file <test:jack/>

I get the following error

antlib.xml:2: taskdef A class needed by class hello.tasks.Hello cannot be
found
: hello/tasks/Hello (wrong name: Hello)



Can anyone help I've been struggling with this all morning.
-- 
View this message in context: http://ant.1045680.n5.nabble.com/Problems-creating-my-own-ant-task-tp3248855p3248855.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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


Mime
View raw message