Subversion Repositories DevTools

Rev

Rev 7137 | Rev 7145 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7137 Rev 7141
Line 1716... Line 1716...
1716
        for (Iterator<BuildExclusion> it = mBuildExclusionCollection.iterator(); it.hasNext(); )
1716
        for (Iterator<BuildExclusion> it = mBuildExclusionCollection.iterator(); it.hasNext(); )
1717
        {
1717
        {
1718
            BuildExclusion buildExclusion = it.next();
1718
            BuildExclusion buildExclusion = it.next();
1719
 
1719
 
1720
            //  Skip 'Processed' entries
1720
            //  Skip 'Processed' entries
1721
            //  These will be the result of a PlanError that we have seen again
1721
            //      These will be the result of a PlanError that we have seen again
1722
            //
1722
            //
1723
            //  PlanErrors - Add/Remove as detected
1723
            if ( buildExclusion.isProcessed() ) {
1724
            //  BuildErrors - Persist. 
1724
                continue;
-
 
1725
            }
-
 
1726
 
-
 
1727
            //  BuildErrors     - Persist ( do nothing) These are handled elsewhere
-
 
1728
            //  PackageErrors   - Add new (ie: was not imported)
1725
            //  IndirectErrors - Add/Remove as detected
1729
            //  IndirectErrors  - Add/Remove as detected
1726
            //  
1730
            //  
1727
            
-
 
1728
            if ( !buildExclusion.isABuildError() )
1731
            if (buildExclusion.isABuildError()) {
1729
            {
1732
                continue;
1730
                if ( !buildExclusion.isProcessed() )
-
 
1731
                {
1733
                
1732
                    if (buildExclusion.isImported() && !buildExclusion.isARootCause() ) {
1734
            } else if (buildExclusion.isAPackageError()) {
1733
                        // Remove from the exclusion list
-
 
1734
                        buildExclusion.includeToBuild(mReleaseManager, mBaseline);
-
 
1735
                        mLogger.error("reportChange remove unused exclusion: {}", buildExclusion );
-
 
1736
                    } else {
-
 
1737
                        // Exclude and notify
1735
                if (buildExclusion.isImported()) {
1738
                        buildExclusion.excludeFromBuild(mReleaseManager, mBaseline);
-
 
1739
                        buildExclusion.email(this, mPackageCollectionAll);
-
 
1740
                        counter++;
1736
                    continue;
1741
                    }
-
 
1742
                }
1737
                }
1743
            }
1738
            }
-
 
1739
            
-
 
1740
            if (buildExclusion.isImported()) {
-
 
1741
                // Remove from the exclusion list
-
 
1742
                mLogger.error("reportChange remove unused exclusion: {}", buildExclusion );
-
 
1743
                buildExclusion.includeToBuild(mReleaseManager, mBaseline);
-
 
1744
 
-
 
1745
            } else {
-
 
1746
                // Exclude and notify
-
 
1747
                mLogger.error("reportChange add new exclusion: {}", buildExclusion );
-
 
1748
                buildExclusion.excludeFromBuild(mReleaseManager, mBaseline);
-
 
1749
                buildExclusion.email(this, mPackageCollectionAll);
-
 
1750
                counter++;
-
 
1751
            }
1744
        }
1752
        }
1745
        mLogger.error("reportChange exclusion count: {}", counter);
1753
        mLogger.error("reportChange exclusion count: {}", counter);
1746
    }
1754
    }
1747
 
1755
 
1748
    /**reports the build plan
1756
    /**reports the build plan