Subversion Repositories DevTools

Rev

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

Rev 7164 Rev 7176
Line 143... Line 143...
143
   * @return true if this item is the root case, and is not simply a by product of some other cause.
143
   * @return true if this item is the root case, and is not simply a by product of some other cause.
144
   * This is the same as !isAIndirectError() 
144
   * This is the same as !isAIndirectError() 
145
   */
145
   */
146
  boolean isARootCause()
146
  boolean isARootCause()
147
  {
147
  {
148
    boolean retVal = false;
-
 
149
    
-
 
150
    if ( mRootId == -1 )
148
      return (mRootId < 0);
151
    {
-
 
152
      retVal = true;
-
 
153
    }
-
 
154
 
-
 
155
    mLogger.info("isARootCause {} returned {}",mId, retVal);
-
 
156
    return retVal;
-
 
157
  }
149
  }
158
  
150
  
159
  /**
151
  /**
160
   * Compare this item with parameters
152
   * Compare this item with parameters
161
   * @param identifier          - Related Package identifier
153
   * @param identifier          - Related Package identifier
Line 182... Line 174...
182
      {
174
      {
183
        retVal = true;
175
        retVal = true;
184
      }
176
      }
185
    }
177
    }
186
    
178
    
187
    mLogger.info("compare returned {}", retVal);
179
    mLogger.debug("compare returned {}", retVal);
188
    return retVal;
180
    return retVal;
189
  }
181
  }
190
  
182
  
191
  /**   Does this entry relate to the package with a specified mId
183
  /**   Does this entry relate to the package with a specified mId
192
   * 
184
   * 
Line 201... Line 193...
201
    if ( mId == identifier )
193
    if ( mId == identifier )
202
    {
194
    {
203
      retVal = true;
195
      retVal = true;
204
    }
196
    }
205
    
197
    
206
    mLogger.info("compare returned {}", retVal);
198
    mLogger.debug("compare returned {}", retVal);
207
    return retVal;
199
    return retVal;
208
  }
200
  }
209
  
201
  
210
  /**runs exclude from build
202
  /**runs exclude from build
211
   * Assumes that a connection to RM has been established
203
   * Assumes that a connection to RM has been established
Line 273... Line 265...
273
        //  Scan to see if the rootCause is still present. It may have been removed by the user
265
        //  Scan to see if the rootCause is still present. It may have been removed by the user
274
        
266
        
275
      retVal = false;
267
      retVal = false;
276
      for (Iterator<BuildExclusion> it = buildExclusionCollection.iterator(); it.hasNext(); )
268
      for (Iterator<BuildExclusion> it = buildExclusionCollection.iterator(); it.hasNext(); )
277
      {
269
      {
278
        BuildExclusion buildExclusion = it.next();
270
        BuildExclusion be = it.next();
279
        
271
        
280
        if ( buildExclusion.mRootId == mRootId )
272
        if ( be.isARootCause() && be.mRootId == mRootId )
281
        {
273
        {
282
          retVal = true;
274
          retVal = true;
283
          break;
275
          break;
284
        }
276
        }
285
      }
277
      }