It's all about the answers!

Ask a question

Writing a custom ant task


Morten Madsen (3032341) | asked Jun 08 '13, 11:38 a.m.
Hi all,

I'm trying to create a custom ant task going forth as Robin describes in her excellent article referred to by this post.

I've generated my plugin and placed it in the buildtoolkit folder. When I run my build, I get the following error. Can anybody help me?


C:\temp\build.xml:15: Only antlib URIs can be located from the URI alone,not the URI 

15: <taskdef taskname="testbackendapi" classname="xtool.backend.tasks.TestBackendAPI"/>

One answer



permanent link
Morten Madsen (3032341) | answered Jun 08 '13, 12:43 p.m.
OMG! the answer was SO easy!

the attribute "taskname" should be renamed to "name"....... argh!

The correct taskdef

<taskdef name="testbackendapi" classname="xtool.backend.tasks.TestBackendAPI"/>


Comments
Ralph Schoon commented Jun 09 '13, 5:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Your answer


Register or to post your answer.