#6 Not loaded classes in Ant task

closed
None
5
2008-02-12
2008-02-03
petrprochy
No

Hi all,
I have a little problem with running ant task. When create <taskedef...> a using this task in target to convert mml to svg file, task can not load batik classes in his jar file.

I investigate where is problem and find class BatikDetector. In this class is called context class loader, which can not load batik classes, because is not visible in actual thread context (ant context).
Possible fix is using classloader of class, which can load classes specified in taskdef classpath.
I actualy must add batik classes to lib directory of ant. This solution is not good and systemic.

I enclose patch for detectors in attachment.

Thanks for your reply

Regards

Petr Prochazka

Discussion

  • petrprochy

    petrprochy - 2008-02-03

    Patch for Converter Detectors

     
    Attachments
  • Max Berger

    Max Berger - 2008-02-10
    • assigned_to: nobody --> maxberger
    • status: open --> pending
     
  • Max Berger

    Max Berger - 2008-02-10

    Logged In: YES
    user_id=99210
    Originator: NO

    modified a little and applied. Please test if this solves your problem.

    Also, if you have further improvements to the ant task, do not hesitate to submit patches.

    Max

     
  • petrprochy

    petrprochy - 2008-02-12
    • status: pending --> closed
     
  • petrprochy

    petrprochy - 2008-02-12

    Logged In: YES
    user_id=961381
    Originator: YES

    Great,
    problem will be solved. Now it's works.
    Thanks...

    Regards

    Petr P.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks