Description of problem:
After installing ANT and apache-ivy package from fedora repo, trying to execute a build.xml file with an ivy task throws an error at the terminal
This is the output after running ant:
[juankprada@localhost ivyTest]$ ant
/home/juankprada/Desktop/ivyTest/build.xml:3: Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve
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:
-a directory added on the command line with the -lib argument
Total time: 0 seconds
Steps to Reproduce:
1. Install Ant and place any ant plugin inside either /usr/share/ant/lib or ~/.ant/lib
2. Execute ant in a build script that uses the plugin you just placed in ant's lib
3. Error is thrown
It is impossible to use Ant with other plugins
To have my application built
I did look for other bug reports on this, and found one that is closed and wont be fixed (god knows why) so I decided to report a new bug on this issue as it's been happening since fedora 10 as seen here https://bugzilla.redhat.com/show_bug.cgi?id=490542
Can you try putting creating /etc/ant.d/ivy file with the simple content of "ivy" and retry? Look at the ant-contrib files for details it contains proper integration.
Created the /etc/ant.d/ivy file with "ivy" (without quotation marks) and tried again with no luck. Error is still the same.
I'm not sure of what files you mean?, any path in particular?
Sorry, It seems that i mesed a bit the ivy isntallation. I just set everything back to default and after having /etc/ant.d/ivy file things seem to work
Does that mean that for every plugin I add to ~/.ant/lib I'll have to do the same?
Moving the bug to apache-ivy because it's not shipping the integration file. About your question the problem seems to be that the startup script is not adding ~/.ant/lib to the classpath. If you provide a patch I would happily apply it.
Ivy ant.d integration done.