> -------- Original-Nachricht -------- > Datum: Thu, 8 Jun 2006 13:14:21 -0400 > Von: 1800 tbsfunny <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]