updateFileProperty( project, "project.target.dir", m_target ); updateFileProperty( project, "project.deliverables", m_deliverables ); updateFileProperty( project, "project.build", m_build ); updateFileProperty( project, "project.test", m_test );
    public Context( Project project ) throws BuildException    {        m_project = project;        m_key = resolveKey();        resolveIndex( project );        m_definition = resolveDefinition( m_key );        //        // set the properties relating to the current project        //        updateProperty( project, "project.key", m_key );        if( null != m_definition )        {            updateProperty( project, "project.group", m_definition.getInfo().getGroup() );            updateProperty( project, "project.name", m_definition.getInfo().getName() );            final String version = m_definition.getInfo().getVersion();            if( version != null )            {                updateProperty( project, "project.version", version );            }            else            {                updateProperty( project, "project.version", "" );            }            updateProperty( project, "project.short-filename", m_definition.getInfo().getShortFilename() );            updateProperty( project, "project.spec", m_definition.getInfo().getSpec() );        }        final File user = project.resolveFile( USER_PROPERTIES );        loadProperties( project, user );        final File build = project.resolveFile( BUILD_PROPERTIES );        loadProperties( project, build );        m_src = project.resolveFile( "src" );        m_srcMain = new File( m_src, "main" );        m_srcTest = new File( m_src, "test" );        m_etc = project.resolveFile( "etc" );        m_target = project.resolveFile( "target" );        m_deliverables = new File( m_target, "deliverables" );        m_classes = new File( m_target, "classes" );        m_testClasses = new File( m_target, "test-classes" );        m_test = new File( m_target, "test" );        m_reports = new File( m_target, "test-reports" );        m_docs = new File( m_target, "docs" );        m_build = new File( m_target, "build" );        m_temp = new File( m_target, "temp" );        updateFileProperty( project, "project.build.dir", m_build );        updateFileProperty( project, "project.target.dir", m_target );        updateFileProperty( project, "project.test.dir", m_test );        updateFileProperty( project, "project.deliverables.dir", m_deliverables );    }