Ongoing effort to package JOSM

Andrea Musuruane musuruan at gmail.com
Sun Aug 9 08:05:33 UTC 2009


On Sun, Aug 9, 2009 at 3:53 AM, Jerry James<loganjerry at gmail.com> wrote:
> On Sat, Aug 8, 2009 at 7:45 AM, Andrea Musuruane <musuruan at gmail.com> wrote:
>> ---8<---8<---8<---8<---8<---8<---8<---8<---8<---
>> [...]
>> test:
>>
>> BUILD FAILED
>> /home/andrea/devel/prg/metadata-extractor/build.xml:48: Problem:
>> failed to create task or type junit
>> Cause: the class
>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
>>        This looks like one of Ant's optional components.
>> Action: Check that the appropriate optional JAR exists in
>>        -/usr/share/ant/lib
>>        -/home/andrea/.ant/lib
>>        -a directory added on the command line with the -lib argument
>>
>> Do not panic, this is a common problem.
>> The commonest cause is a missing JAR.
>>
>> This is not a bug; it is a configuration problem
>> ---8<---8<---8<---8<---8<---8<---8<---8<---8<---
>
> You need to BuildRequires ant-junit to get the necessary jar (namely,
> %{_javadir}/ant/ant-junit.jar).

If I do that I get:

[...]
test:
    [junit] WARNING: multiple versions of ant detected in path for junit
    [junit]
jar:file:/usr/share/java/ant-1.7.1.jar!/org/apache/tools/ant/Project.class
    [junit]      and
jar:file:/usr/share/java/ant.jar!/org/apache/tools/ant/Project.class
    [junit] Running com.drew.metadata.test.AllTests
    [junit] Tests run: 79, Failures: 1, Errors: 0, Time elapsed: 0,269 sec

BUILD FAILED
/home/andrea/devel/prg/metadata-extractor/build.xml:48: Test
com.drew.metadata.test.AllTests failed

Total time: 1 second

Regards,

Andrea.




More information about the fedora-devel-list mailing list