ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vimil Saju <vimils...@yahoo.com>
Subject Re: Antlib Confusion
Date Sat, 26 May 2012 03:42:40 GMT
I think you should place the antlib.xml under the package  org.tabbysplace.ant.common in remotesynch.jar


________________________________
 From: Jonathan Rosenberg <jr@tabbysplace.org>
To: Ant Users List <user@ant.apache.org> 
Sent: Friday, May 25, 2012 7:50 AM
Subject: Antlib Confusion
 
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message