Changeset 1595

Show
Ignore:
Timestamp:
04/05/07 08:19:07 (2 years ago)
Author:
dsugar
Message:

fixed to reload linkage when a .flnk file is udpated.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/Linkage.java

    r1411 r1595  
    2626 * SEFramework policy and dictionary.  The Linkage class tells the  
    2727 * Translator the detailed rules involved in the translation.  This 
    28  * separation was done to aide in policy version idependence. 
     28 * separation was done to aide in policy version independence. 
    2929 */ 
    3030public final class Linkage { 
  • trunk/framework-plugin/src/com/tresys/framework/plugin/builder/FrameworkNature.java

    r1588 r1595  
    487487                        m_dictionary = null; 
    488488                if (i_file.getFileExtension().equals(m_flnkExt)) 
     489                { 
    489490                        allAbilities = allBaseDomains = allBaseResources = null; 
     491                        for (Iterator itr = getSystems().iterator(); itr.hasNext(); ) 
     492                                ((SELinuxSystem) itr.next()).forceLinkageReload(); 
     493                } 
    490494        } 
    491495 
     
    497501                        m_dictionary = null; 
    498502                if (i_file.getFileExtension().equals(m_flnkExt)) 
     503                { 
    499504                        allAbilities = allBaseDomains = allBaseResources = null; 
     505                        for (Iterator itr = getSystems().iterator(); itr.hasNext(); ) 
     506                                ((SELinuxSystem) itr.next()).forceLinkageReload(); 
     507                } 
    500508        } 
    501509