Subversion Repositories DevTools

Rev

Rev 900 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 900 Rev 902
Line 453... Line 453...
453
         * 5     11     Product                      .tim  5.TIM.WIP \vob\Product                      M
453
         * 5     11     Product                      .tim  5.TIM.WIP \vob\Product                      M
454
         * 6     113    UnfinishedProduct            .tim  6.TIM.WIP \vob\UnfinishedProduct            M
454
         * 6     113    UnfinishedProduct            .tim  6.TIM.WIP \vob\UnfinishedProduct            M
455
         */
455
         */
456
         if ( mConnectionString.compareTo("iteration1") == 0 )
456
         if ( mConnectionString.compareTo("iteration1") == 0 )
457
         {
457
         {
458
           Package p = new Package(0, "UncommonDependency", ".tim", "UncommonDependency.tim", "0.TIM.WIP", "\\vob\\UncommonDependency", 'P');
458
           Package p = new Package(0, "UncommonDependency", ".tim", "UncommonDependency.tim", "0.TIM.WIP", "\\vob\\UncommonDependency", 'P', 'b');
459
           p.mPid = 76;
459
           p.mPid = 76;
460
           p.mDirectlyPlanned = true;
460
           p.mDirectlyPlanned = true;
461
           packageCollection.add(p);
461
           packageCollection.add(p);
462
         }
462
         }
463
         
463
         
464
         Package p = new Package(1, "DependencyMissingFromRelease", ".tim", "DependencyMissingFromRelease.tim", "1.TIM.WIP", "\\vob\\DependencyMissingFromRelease", 'M');
464
         Package p = new Package(1, "DependencyMissingFromRelease", ".tim", "DependencyMissingFromRelease.tim", "1.TIM.WIP", "\\vob\\DependencyMissingFromRelease", 'M', 'b');
465
         p.mPid = 1011;
465
         p.mPid = 1011;
466
         p.mDirectlyPlanned = true;
466
         p.mDirectlyPlanned = true;
467
         packageCollection.add(p);
467
         packageCollection.add(p);
468
         
468
         
469
         if ( mConnectionString.compareTo("iteration1") == 0 || mConnectionString.compareTo("iteration2") == 0 )
469
         if ( mConnectionString.compareTo("iteration1") == 0 || mConnectionString.compareTo("iteration2") == 0 )
470
         {
470
         {
471
           p = new Package(2, "CommonDependency", ".tim", "CommonDependency.tim", "2.TIM.WIP", "\\vob\\CommonDependency", 'M');
471
           p = new Package(2, "CommonDependency", ".tim", "CommonDependency.tim", "2.TIM.WIP", "\\vob\\CommonDependency", 'M', 'b');
472
           p.mPid = 34;
472
           p.mPid = 34;
473
           p.mDirectlyPlanned = true;
473
           p.mDirectlyPlanned = true;
474
           packageCollection.add(p);
474
           packageCollection.add(p);
475
         }
475
         }
476
         
476
         
477
         if ( mConnectionString.compareTo("iteration1") == 0 
477
         if ( mConnectionString.compareTo("iteration1") == 0 
478
           || mConnectionString.compareTo("iteration2") == 0
478
           || mConnectionString.compareTo("iteration2") == 0
479
           || mConnectionString.compareTo("iteration3") == 0 )
479
           || mConnectionString.compareTo("iteration3") == 0 )
480
         {
480
         {
481
           p = new Package(3, "SolarisCentricProduct", ".tim", "SolarisCentricProduct.tim", "3.TIM.WIP", "\\vob\\SolarisCentricProduct", 'N');
481
           p = new Package(3, "SolarisCentricProduct", ".tim", "SolarisCentricProduct.tim", "3.TIM.WIP", "\\vob\\SolarisCentricProduct", 'N', 'b');
482
           p.mPid = 908;
482
           p.mPid = 908;
483
           p.mDirectlyPlanned = true;
483
           p.mDirectlyPlanned = true;
484
           packageCollection.add(p);
484
           packageCollection.add(p);
485
         }
485
         }
486
         
486
         
487
         if ( mConnectionString.compareTo("iteration1") == 0 
487
         if ( mConnectionString.compareTo("iteration1") == 0 
488
           || mConnectionString.compareTo("iteration2") == 0
488
           || mConnectionString.compareTo("iteration2") == 0
489
           || mConnectionString.compareTo("iteration3") == 0
489
           || mConnectionString.compareTo("iteration3") == 0
490
           || mConnectionString.compareTo("iteration4") == 0 )
490
           || mConnectionString.compareTo("iteration4") == 0 )
491
         {
491
         {
492
           p = new Package(4, "GenericProduct", ".tim", "GenericProduct.tim", "4.TIM.WIP", "\\vob\\GenericProduct", 'P');
492
           p = new Package(4, "GenericProduct", ".tim", "GenericProduct.tim", "4.TIM.WIP", "\\vob\\GenericProduct", 'P', 'b');
493
           p.mPid = 6;
493
           p.mPid = 6;
494
           p.mDirectlyPlanned = true;
494
           p.mDirectlyPlanned = true;
495
           packageCollection.add(p);
495
           packageCollection.add(p);
496
         }
496
         }
497
         
497
         
Line 499... Line 499...
499
           || mConnectionString.compareTo("iteration2") == 0
499
           || mConnectionString.compareTo("iteration2") == 0
500
           || mConnectionString.compareTo("iteration3") == 0
500
           || mConnectionString.compareTo("iteration3") == 0
501
           || mConnectionString.compareTo("iteration4") == 0
501
           || mConnectionString.compareTo("iteration4") == 0
502
           || mConnectionString.compareTo("iteration5") == 0 )
502
           || mConnectionString.compareTo("iteration5") == 0 )
503
         {
503
         {
504
           p = new Package(5, "Product", ".tim", "Product.tim", "5.TIM.WIP", "\\vob\\Product", 'M');
504
           p = new Package(5, "Product", ".tim", "Product.tim", "5.TIM.WIP", "\\vob\\Product", 'M', 'b');
505
           p.mPid = 11;
505
           p.mPid = 11;
506
           p.mDirectlyPlanned = true;
506
           p.mDirectlyPlanned = true;
507
           packageCollection.add(p);
507
           packageCollection.add(p);
508
         }
508
         }
509
        
509
        
510
         p = new Package(6, "UnfinishedProduct", ".tim", "UnfinishedProduct.tim", "6.TIM.WIP", "\\vob\\UnfinishedProduct", 'M');
510
         p = new Package(6, "UnfinishedProduct", ".tim", "UnfinishedProduct.tim", "6.TIM.WIP", "\\vob\\UnfinishedProduct", 'M', 'b');
511
         p.mPid = 113;
511
         p.mPid = 113;
512
         p.mDirectlyPlanned = true;
512
         p.mDirectlyPlanned = true;
513
         packageCollection.add(p);
513
         packageCollection.add(p);
514
         
514
         
515
        /* planned dependencies
515
        /* planned dependencies
Line 1379... Line 1379...
1379
          stmt0.close();
1379
          stmt0.close();
1380
          
1380
          
1381
          // get planned package info
1381
          // get planned package info
1382
          // devi 48629 support multiple wips on the same package and build in the order they were released
1382
          // devi 48629 support multiple wips on the same package and build in the order they were released
1383
          CallableStatement stmt1 = mConnection.prepareCall(
1383
          CallableStatement stmt1 = mConnection.prepareCall(
1384
          "select pl.pv_id, p.pkg_id, p.pkg_name, pv.v_ext, pv.pkg_label, pv.src_path, pv.change_type, pv.modified_stamp " +
1384
          "select pl.pv_id, p.pkg_id, p.pkg_name, pv.v_ext, pv.pkg_label, pv.src_path, pv.change_type, " +
-
 
1385
          "pv.ripple_field, pv.major_limit, pv.minor_limit, pv.patch_limit, pv.build_number_limit, pv.modified_stamp " +
1385
          "from release_manager.planned pl, release_manager.package_versions pv, release_manager.packages p " +
1386
          "from release_manager.planned pl, release_manager.package_versions pv, release_manager.packages p " +
1386
          "where pl.rtag_id=" + baseline + " and pv.build_type='A' and pv.dlocked='A' " +
1387
          "where pl.rtag_id=" + baseline + " and pv.build_type='A' and pv.dlocked='A' " +
1387
          "and pv.pv_id=pl.pv_id and p.pkg_id=pv.pkg_id " +
1388
          "and pv.pv_id=pl.pv_id and p.pkg_id=pv.pkg_id " +
1388
          "order by pv.modified_stamp"
1389
          "order by pv.modified_stamp"
1389
          );
1390
          );
Line 1461... Line 1462...
1461
              ct = 'P';
1462
              ct = 'P';
1462
            }
1463
            }
1463
            
1464
            
1464
            if ( ct != 'x' )
1465
            if ( ct != 'x' )
1465
            {
1466
            {
-
 
1467
              String ripple_field = rset1.getString("ripple_field");
-
 
1468
              
-
 
1469
              if ( ripple_field == null )
-
 
1470
              {
-
 
1471
                ripple_field = "b";
-
 
1472
              }
-
 
1473
              else if ( ripple_field.length() == 0 )
-
 
1474
              {
-
 
1475
                ripple_field = "b";
-
 
1476
              }
-
 
1477
              
-
 
1478
              int major_limit = rset1.getInt("major_limit");
-
 
1479
              
-
 
1480
              if ( rset1.wasNull() )
-
 
1481
              {
-
 
1482
                major_limit = 0;
-
 
1483
              }
-
 
1484
              
-
 
1485
              int minor_limit = rset1.getInt("minor_limit");
-
 
1486
              
-
 
1487
              if ( rset1.wasNull() )
-
 
1488
              {
-
 
1489
                minor_limit = 0;
-
 
1490
              }
-
 
1491
 
-
 
1492
              int patch_limit = rset1.getInt("patch_limit");
-
 
1493
              
-
 
1494
              if ( rset1.wasNull() )
-
 
1495
              {
-
 
1496
                patch_limit = 0;
-
 
1497
              }
-
 
1498
 
-
 
1499
              int build_number_limit = rset1.getInt("build_number_limit");
-
 
1500
              
-
 
1501
              if ( rset1.wasNull() )
-
 
1502
              {
-
 
1503
                build_number_limit = 0;
-
 
1504
              }
-
 
1505
 
1466
              Package p = new Package(pv_id, pkg_name, v_ext, pkg_name + v_ext, pkg_label, src_path, ct);
1506
              Package p = new Package(pv_id, pkg_name, v_ext, pkg_name + v_ext, pkg_label, src_path, ct, ripple_field.charAt(0));
1467
              p.mPid = pkg_id;
1507
              p.mPid = pkg_id;
1468
              p.mDirectlyPlanned = true;
1508
              p.mDirectlyPlanned = true;
-
 
1509
              p.mMajorLimit = major_limit;
-
 
1510
              p.mMinorLimit = minor_limit;
-
 
1511
              p.mPatchLimit = patch_limit;
-
 
1512
              p.mBuildLimit = build_number_limit;
1469
              Package plannedPackage = findPackage(p.mAlias, packageCollection);
1513
              Package plannedPackage = findPackage(p.mAlias, packageCollection);
1470
              
1514
              
1471
              if ( plannedPackage == NULL_PACKAGE )
1515
              if ( plannedPackage == NULL_PACKAGE )
1472
              {
1516
              {
1473
                mLogger.info("queryPackageVersions rset1 no previous planned package " + pv_id);
1517
                mLogger.info("queryPackageVersions rset1 no previous planned package " + pv_id);
Line 1941... Line 1985...
1941
            
1985
            
1942
            String ripple_field = rset8.getString("ripple_field");
1986
            String ripple_field = rset8.getString("ripple_field");
1943
            
1987
            
1944
            if ( ripple_field == null )
1988
            if ( ripple_field == null )
1945
            {
1989
            {
1946
              ripple_field = "x";
1990
              ripple_field = "b";
1947
            }
1991
            }
1948
            else if ( ripple_field.length() == 0 )
1992
            else if ( ripple_field.length() == 0 )
1949
            {
1993
            {
1950
              ripple_field = "x";
1994
              ripple_field = "b";
1951
            }
1995
            }
1952
            
1996
            
1953
            int major_limit = rset8.getInt("major_limit");
1997
            int major_limit = rset8.getInt("major_limit");
1954
            
1998
            
1955
            if ( rset8.wasNull() )
1999
            if ( rset8.wasNull() )