I have the following code running against Ant 1.6.2:

Project project = new Project(); project.init();
project.setUserProperty( "base.dir", new File( rootDir ).getAbsolutePath() );
project.setUserProperty( "ant.file", new File( new File( rootDir ), buildFile ).getAbsolutePath() );
ProjectHelper helper = ProjectHelper.getProjectHelper();
helper.parse( project, new File( new File( rootDir ), buildFile ));
project.addBuildListener( new MyLogger() )
project.executeTarget( "build" );



where MyLogger is an implementation of BuildListener where all of the methods simply print statements to stdout indicating which method is called. For some reason the buildStarted & buildFinished methods never seem to get called, while the other methods do. Why might this be happening?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to