FileDocCategorySizeDatePackage
SplashScreenTest.javaAPI DocApache Ant 1.701778Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs.optional.splash

SplashScreenTest

public class SplashScreenTest extends Object
This is an "interactive" test, it passes if the splash screen disappears after the "finished" but before the "exiting" message. This even isn't a JUnit test case.
since
Ant 1.5.2

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        Project p = new Project();
        SplashTask t = new SplashTask();
        t.setProject(p);
        t.execute();

        // give it some time to display
        try {
            Thread.currentThread().sleep(2000);
        } catch (InterruptedException e) {
        } // end of try-catch

        p.fireBuildFinished(null);
        System.err.println("finished");

        try {
            Thread.currentThread().sleep(2000);
        } catch (InterruptedException e) {
        } // end of try-catch
        System.err.println("exiting");
        System.exit(0);