mil.dod.th.ose.controller/src/mil/dod/th/ose/controller/impl/ThoseVersionProviderImpl.java
@Activate
    public void activate(final BundleContext context) throws IOException
    {
        final URL infoPropsUrl = context.getBundle().getResource(BUILD_INFO_FILE_NAME);
        m_BuildInfoProps = m_PropRetriever.getPropertiesFromUrl(infoPropsUrl);

        final URL tmpPropsUrl = context.getBundle().getResource(TMP_BUILD_FILE_NAME);
        m_TmpBuildProps = m_PropRetriever.getPropertiesFromUrl(tmpPropsUrl);
        
        m_BuildType = (String)m_TmpBuildProps.get(BUILD_TYPE_PROP_NAME);
        
        //fetch the branch name, fail if it is null and an automated build type
        m_BranchName = (String)m_TmpBuildProps.get(BUILD_BRANCH_PROP_NAME);
        if (m_BuildType.equals(AUTOMATED_BUILD_TYPE) && m_BranchName == null)
        {
            throw new IllegalStateException("The branch property is null, and is required to accurately record" 
                    + " the build information.");
        }
    }
/**
     * Activate this component by initializing the property maps with build information.
     * 
     * @param context
     *      context for the bundle containing the properties
     * @throws IOException
     *      if there is a failure to get properties from the expected location
     */
Activate this component by initializing the property maps with build information.

@param context
context for the bundle containing the properties
@throws IOException
if there is a failure to get properties from the expected location
Activate this component by initializing the property maps with build information . @param context context for the bundle containing the properties @throws IOException if there is a failure to get properties from the expected location
@Activate
    public void activate(final BundleContext context) throws IOException
    {
        final URL infoPropsUrl = context.getBundle().getResource(BUILD_INFO_FILE_NAME);
        m_BuildInfoProps = m_PropRetriever.getPropertiesFromUrl(infoPropsUrl);
        final URL tmpPropsUrl = context.getBundle().getResource(TMP_BUILD_FILE_NAME);
        m_TmpBuildProps = m_PropRetriever.getPropertiesFromUrl(tmpPropsUrl);
        m_BuildType = (String)m_TmpBuildProps.get(BUILD_TYPE_PROP_NAME);
        m_BranchName = (String)m_TmpBuildProps.get(BUILD_BRANCH_PROP_NAME);
        if (m_BuildType.equals(AUTOMATED_BUILD_TYPE) && m_BranchName == null)
        {
            throw new IllegalStateException("The branch property is null, and is required to accurately record" 
                    + " the build information.");
        }
    }
@ Activate public void activate ( final BundleContext context ) throws IOException { final URL infoPropsUrl = context . getBundle ( ) . getResource ( BUILD_INFO_FILE_NAME ) ; m_BuildInfoProps = m_PropRetriever . getPropertiesFromUrl ( infoPropsUrl ) ; final URL tmpPropsUrl = context . getBundle ( ) . getResource ( TMP_BUILD_FILE_NAME ) ; m_TmpBuildProps = m_PropRetriever . getPropertiesFromUrl ( tmpPropsUrl ) ; m_BuildType = ( String ) m_TmpBuildProps . get ( BUILD_TYPE_PROP_NAME ) ; m_BranchName = ( String ) m_TmpBuildProps . get ( BUILD_BRANCH_PROP_NAME ) ; if ( m_BuildType . equals ( AUTOMATED_BUILD_TYPE ) && m_BranchName == null ) { throw new IllegalStateException ( "The branch property is null, and is required to accurately record" + " the build information." ) ; } }
Activate this component by initializing the property maps with build information.
Activate this component by initializing the property maps with build information .
//fetch the branch name, fail if it is null and an automated build type