It's all about the answers!

Ask a question

Writing a custom ant task


Morten Madsen (3053250) | 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 (3053250) | 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.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.