Subversion Repositories DevTools

Rev

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

Rev 7231 Rev 7282
Line 408... Line 408...
408
        //    Note: Done before mPackageDependencyCollection is setup
408
        //    Note: Done before mPackageDependencyCollection is setup
409
        //
409
        //
410
        Phase phase = new Phase("processPackages");
410
        Phase phase = new Phase("processPackages");
411
        if ( mDaemon )
411
        if ( mDaemon )
412
        {
412
        {
-
 
413
            //  Exclude packages that have been specifically excluded because
-
 
414
            //      They have failed to build
-
 
415
            //      User says so
-
 
416
            //  Only examine the ReleaseCollection, Wip and Ripple Collections
-
 
417
            //      Can testBuild a package that has been excluded
-
 
418
            //      
-
 
419
            phase.setPhase("Exclude packages");
-
 
420
            for (ListIterator<BuildExclusion> it = mBuildExclusionCollection.listIterator(); it.hasNext(); )
-
 
421
            {
-
 
422
                BuildExclusion be = it.next();
-
 
423
                mLogger.debug("BE: {}", be);
-
 
424
                if ( be.isARootCause() )
-
 
425
                {
-
 
426
                    Package rootPackage = mPackageCollectionAll.contains(be.mId);
-
 
427
                    if (rootPackage != null) {
-
 
428
                    
-
 
429
                        Package p;
-
 
430
                        p = mPackageCollection.contains(rootPackage.mAlias);
-
 
431
                        if (p != null) {
-
 
432
                            p.excludeFromBuilds(-3, "Exclude from Release {}");
-
 
433
                        }
-
 
434
                        
-
 
435
                        p = mPackageCollectionWip.contains(be.mId);
-
 
436
                        if (p != null) {
-
 
437
                            p.excludeFromBuilds(-3, "Exclude from WIP {}");
-
 
438
                        }
-
 
439
                        
-
 
440
                        p = mPackageCollectionTest.contains(be.mId);
-
 
441
                        if (p != null) {
-
 
442
                            p.excludeFromBuilds(-3, "Exclude from Test {}");
-
 
443
                        }
-
 
444
                    }
-
 
445
                }
-
 
446
            }
-
 
447
            
413
            // Process test builds - they are in their own collection
448
            // Process test builds - they are in their own collection
414
            phase.setPhase("TestBuilds");
449
            phase.setPhase("TestBuilds");
415
            for (Iterator<Package> it = mPackageCollectionTest.iterator(); it.hasNext(); )
450
            for (Iterator<Package> it = mPackageCollectionTest.iterator(); it.hasNext(); )
416
            {
451
            {
417
                Package p = it.next();
452
                Package p = it.next();
Line 2017... Line 2052...
2017
        {
2052
        {
2018
            p.mBuildFile = reason;
2053
            p.mBuildFile = reason;
2019
            mLogger.info("rippleBuildExclude set mBuildFile to {} for package {}", reason, p.mAlias );
2054
            mLogger.info("rippleBuildExclude set mBuildFile to {} for package {}", reason, p.mAlias );
2020
            
2055
            
2021
            //  Scan the complete collection looking for a matching item
2056
            //  Scan the complete collection looking for a matching item
2022
            //  If found then assume that this error is a a PlanError that is still present
2057
            //  If found then assume that this error is a PlanError that is still present
2023
            //      Mark it as Processed to indicate that its still present
2058
            //      Mark it as Processed to indicate that its still present
2024
            //  If found, process it, else add it (unprocessed)
2059
            //  If found, process it, else add it (unprocessed)
2025
            boolean found = false;
2060
            boolean found = false;
2026
            for (Iterator<BuildExclusion> it = mBuildExclusionCollection.iterator(); it.hasNext(); )
2061
            for (Iterator<BuildExclusion> it = mBuildExclusionCollection.iterator(); it.hasNext(); )
2027
            {
2062
            {