Subversion Repositories DevTools

Rev

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

Rev 866 Rev 868
Line 24... Line 24...
24
  Vector<String> mGbeMachtypeCollection = new Vector<String>();
24
  Vector<String> mGbeMachtypeCollection = new Vector<String>();
25
  
25
  
26
  /**configured mail server
26
  /**configured mail server
27
   * @attribute
27
   * @attribute
28
   */
28
   */
29
  String mMailServer = new String();
29
  public String mMailServer = new String();
30
 
30
 
31
  /**configured mail sender user
31
  /**configured mail sender user
32
   * @attribute
32
   * @attribute
33
   */
33
   */
34
  String mMailSender = new String();
34
  public String mMailSender = new String();
-
 
35
 
-
 
36
  /**configured global email target
-
 
37
   * @attribute
-
 
38
   */
-
 
39
  public String mGlobalTarget = new String();
35
 
40
 
36
  /**name associated with the baseline
41
  /**name associated with the baseline
37
   * @attribute
42
   * @attribute
38
   */
43
   */
39
  String mBaselineName = new String();
44
  public String mBaselineName = new String();
40
 
45
 
41
  /**collection of released pv_ids associated with the release
46
  /**collection of released pv_ids associated with the release
42
   * @attribute
47
   * @attribute
43
   */
48
   */
44
  Vector<Integer> mReleasedPvIDCollection = new Vector<Integer>();
49
  Vector<Integer> mReleasedPvIDCollection = new Vector<Integer>();
Line 162... Line 167...
162
          buildExclusion.includeToBuild(mReleaseManager, mBaseline);
167
          buildExclusion.includeToBuild(mReleaseManager, mBaseline);
163
        }
168
        }
164
      }
169
      }
165
    }
170
    }
166
    
171
    
167
    collectMetaData();
-
 
168
    
-
 
169
    mReleaseManager.queryPackageVersions(this, mPackageCollection, mDaemon, mBaseline);
172
    mReleaseManager.queryPackageVersions(this, mPackageCollection, mDaemon, mBaseline);
170
    
173
    
171
    // set up mPackageDependencyCollection
174
    // set up mPackageDependencyCollection
172
    for (Iterator<Package> it = mPackageCollection.iterator(); it.hasNext(); )
175
    for (Iterator<Package> it = mPackageCollection.iterator(); it.hasNext(); )
173
    {
176
    {
Line 801... Line 804...
801
    mLogger.debug("getNextBuildFileContent returned " + retVal);
804
    mLogger.debug("getNextBuildFileContent returned " + retVal);
802
    return retVal;
805
    return retVal;
803
  }
806
  }
804
 
807
 
805
  /**collects meta data associated with the baseline
808
  /**collects meta data associated with the baseline
-
 
809
   * this is sufficient to send an indefinite pause email notification
806
   */
810
   */
807
  private void collectMetaData() throws SQLException, Exception
811
  public void collectMetaData() throws SQLException, Exception
808
  {
812
  {
809
    mLogger.debug("collectMetaData mDaemon " + mDaemon);
813
    mLogger.debug("collectMetaData mDaemon " + mDaemon);
810
    mGbeMachtypeCollection.removeAllElements();
814
    mGbeMachtypeCollection.removeAllElements();
-
 
815
    mReleaseManager.connect();
811
    mReleaseManager.queryMachtypes(mGbeMachtypeCollection, mDaemon, mBaseline);
816
    mReleaseManager.queryMachtypes(mGbeMachtypeCollection, mDaemon, mBaseline);
812
 
817
 
813
    if (mDaemon)
818
    if (mDaemon)
814
    {
819
    {
815
      mMailServer = mReleaseManager.queryMailServer();
820
      mMailServer = mReleaseManager.queryMailServer();
816
      mMailSender = mReleaseManager.queryMailSender();
821
      mMailSender = mReleaseManager.queryMailSender();
-
 
822
      mGlobalTarget = mReleaseManager.queryGlobalAddresses();
817
    }
823
    }
818
    mBaselineName = mReleaseManager.queryBaselineName(mDaemon, mBaseline);
824
    mBaselineName = mReleaseManager.queryBaselineName(mDaemon, mBaseline);
-
 
825
    mReleaseManager.disconnect();
819
  }
826
  }
820
 
827
 
821
  /**returns the Package with the matching mAlias or NULL_PACKAGE if no package has the mID
828
  /**returns the Package with the matching mAlias or NULL_PACKAGE if no package has the mID
822
   */
829
   */
823
  private Package findPackage(String alias)
830
  private Package findPackage(String alias)
Line 876... Line 883...
876
          {
883
          {
877
            buildExclusion.process();
884
            buildExclusion.process();
878
          }
885
          }
879
        }
886
        }
880
        
887
        
881
        // only use root_pv_id if not equal to the pv_id
-
 
882
        // this is to drive a direct build exclusion in the release manager
-
 
883
        int temp = root_pv_id;
-
 
884
        if ( p.mId == root_pv_id )
-
 
885
        {
-
 
886
          // force a null root_pv_id in the database
-
 
887
          temp = -1;
-
 
888
        }
-
 
889
        
-
 
890
        BuildExclusion buildExclusion = new BuildExclusion(p.mId, temp, root_cause);
888
        BuildExclusion buildExclusion = new BuildExclusion(p.mId, root_pv_id, root_cause);
891
        
889
        
892
        if ( list == null )
890
        if ( list == null )
893
        {
891
        {
894
          mBuildExclusionCollection.add(buildExclusion);
892
          mBuildExclusionCollection.add(buildExclusion);
895
        }
893
        }