ProjectHelper.configureProject( project, m_file );
project.addReference( "ant.projectHelper", helper );
    public void execute()    {        Throwable error = null;        Project project = new Project();        project.setDefaultInputStream( System.in );        setupTransitComponentHelper( project );        try        {            project.setCoreLoader( getClass().getClassLoader() );            project.addBuildListener( createLogger() );            System.setIn( new DemuxInputStream(project) );            project.setProjectReference( new DefaultInputHandler() );            project.fireBuildStarted();            project.setUserProperty( "ant.file", m_file.getAbsolutePath() );            project.init();            ProjectHelper helper = ProjectHelper.getProjectHelper();            ProjectHelper.configureProject( project, m_file );            helper.parse( project, m_file );            Vector targets = new Vector();            for( int i=0; i < m_targets.length; i++ )            {                targets.add( m_targets[i] );            }            if( targets.size() == 0 )             {                if( null != project.getDefaultTarget() )                 {                    targets.addElement( project.getDefaultTarget() );                }            }            project.executeTargets(targets);        }        catch( Throwable e )        {            error = e;        }        finally        {            if( null != error )            {                m_logger.error( "Build error.", error );                //System.out.println( "---------------------------------------" );                //error.printStackTrace();            }            else            {                m_logger.info( "done" );                //System.out.println( "done" );            }            project.fireBuildFinished( error );        }    }