ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: Re: Methods inside Java ant task
Date Thu, 08 Jun 2006 19:49:20 GMT

> -------- Original-Nachricht --------
> Datum: Thu, 8 Jun 2006 13:14:21 -0400
> Von: 1800 tbsfunny <1800tbsfunny@gmail.com>
> An: Ant Users List <user@ant.apache.org>
> Betreff: Re: Methods inside Java ant task
> 
> Thanks Antonie.
> 
> I created a wrapper class.
> 
> public class TestSingletonInitializer
> {
>     public static void main(String[] args)
>     {
>         TestSingleton.initialize();
>     }
> }
> 
> This still doesnt run very well. But when I use my initialize method
> inside
> of the junit tests. ex.
> 
> <junit>
> TestSingleton.initialize()
> ..
> run tests
> ..
> TestSingleton.shutdown()
> </junit>
> 
> It works fine. Any clues why the initialize method runs succesffully
> inside
> the junit task but not a seperate java task?
> 
I do not have any clue. It depends upon the code of TestSingleton.
Are you getting a build exception ? If yes, run ant -debug to get a stack trace, and mail
the stack trace and the build file.

Regards,

Antoine

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


Mime
View raw message