ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rosenberg ...@tabbysplace.org>
Subject Antlib Confusion
Date Fri, 25 May 2012 14:50:24 GMT
I am trying to make an Antlib & find myself very confused.  Here is
what I have done:

antlib.xml:

<?xml version="1.0" encoding="UTF-8"?>

<antlib>
    <taskdef name="remote-synch"
classname="org.tabbysplace.ant.common.RemoteSynch" />
</antlib>

In home/.ant/lib:

remotesynch.jar
antlib.xml

In the file trying to use the antlib I have:

<project name='Update JAWR Config and refresh' default='start'
basedir='.' xmlns:tp="antlib:org.tabbysplace.ant.common">

But when I run this I get

\\\\tabbysplace.pri\user\jr\My Documents\workspace\JAWR\update.xml:64:
Problem: failed to create task or type
antlib:org.tabbysplace.ant.common:remote-synch
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -C:\springsource\sts-2.9.0.M1\plugins\org.apache.ant_1.8.2.v20120109-1030\lib
        -C:\Documents and Settings\jr\.ant\lib
        -a directory added on the command line with the -lib argument

What am I missing?

--
Jonathan Rosenberg
Founder & Executive Director
Tabby's Place, a Cat Sanctuary
http://www.tabbysplace.org/

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


Mime
View raw message