Subversion Repositories DevTools

Rev

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

Rev 7176 Rev 7186
Line 292... Line 292...
292
   * and a non null root cause
292
   * and a non null root cause
293
   * 
293
   * 
294
   * @param    rippleEngine        - Ripple Engine Instance
294
   * @param    rippleEngine        - Ripple Engine Instance
295
   * @param    packageCollection   - Collection to process
295
   * @param    packageCollection   - Collection to process
296
   */
296
   */
297
    public void email(RippleEngine rippleEngine, ArrayList<Package> packageCollection) throws SQLException, Exception
297
    public void email(RippleEngine rippleEngine, PackageCollection packageCollection) throws SQLException, Exception
298
    {
298
    {
299
      mLogger.debug("email {}", mId);
299
      mLogger.debug("email {}", mId);
300
      
300
      
301
      //
301
      //
302
      //    Only process entries that are direct failures of ripple engine detected failure
302
      //    Only process entries that are direct failures of ripple engine detected failure
Line 306... Line 306...
306
      //        Special handling for rippleStop - do not send emails
306
      //        Special handling for rippleStop - do not send emails
307
      //
307
      //
308
      if ( isAPackageError() && mRootId != -2 )
308
      if ( isAPackageError() && mRootId != -2 )
309
      {
309
      {
310
        //  Locate the associated package entry
310
        //  Locate the associated package entry
311
        Package pkg= rippleEngine.mReleaseManager.findPackage(mId, packageCollection);
311
        Package pkg= packageCollection.contains(mId);
312
        
-
 
313
        if ( pkg != ReleaseManager.NULL_PACKAGE )
312
        if ( pkg != null )
314
        {
313
        {
315
            // Generate a nice subject line
314
            // Generate a nice subject line
316
            String subject;
315
            String subject;
317
            if (pkg.mTestBuildInstruction > 0) {
316
            if (pkg.mTestBuildInstruction > 0) {
318
                subject = "TEST BUILD FAILED on package " + pkg.mAlias;
317
                subject = "TEST BUILD FAILED on package " + pkg.mAlias;