Examples of DefectLog


Examples of net.sourceforge.processdash.log.defects.DefectLog


  protected void reload () {
    PropertyKey pKey;
    Prop prop;
    DefectLog dl;
    String defLogName;
    Defect[] defects;
    defectLogs.clear();
    Enumeration pKeys = useProps.keys ();
    while (pKeys.hasMoreElements()) {
      pKey = (PropertyKey)pKeys.nextElement();
      prop = useProps.pget (pKey);
      defLogName = prop.getDefectLog ();
      if (defLogName != null && defLogName.length() != 0) {
        dl = new DefectLog (dashboard.getDirectory() + defLogName,
                            pKey.path(),
                            data);
        defects = dl.readDefects();
        defectLogs.put (pKey, new DefectListID (pKey, dl, defects));
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.processdash.log.defects.DefectLog

    if (!oldLog.filename.equals(newLog.filename)) {
      // Should this ever happen???
      return;
    }

    DefectLog log = new DefectLog(newLog.filename, newLogPath, null);
    log.performInternalRename(oldPrefix, newPrefix);
  }
View Full Code Here

Examples of net.sourceforge.processdash.log.defects.DefectLog

        PCSH.enableHelpKey(this, "EnteringDefects");

        parent = dash;
        this.defectFilename = defectFilename;
        this.defectPath = defectPath;
        defectLog = new DefectLog(defectFilename, defectPath.path(),
                                  dash.getData());
        date = new Date();
        stopwatch = new Stopwatch(false);
        stopwatch.setMultiplier(Settings.getVal("timer.multiplier"));
        stopwatchSynchronizer = new StopwatchSynchronizer(dash
View Full Code Here

Examples of net.sourceforge.processdash.log.defects.DefectLog

        String filename = hier.pget(defectLogKey).getDefectLog();
        if (!StringUtils.hasValue(filename)) {
            AbortImport.showError("Hierarchy_Changed", selectedPath);
            return;
        }
        DefectLog defectLog = new DefectLog(
                dashboard.getDirectory() + filename, defectLogPath,
                dashboardContext.getData());

        int addedCount = 0;
        int updatedCount = 0;
        int unchangedCount = 0;
       
        for (Iterator i = defects.iterator(); i.hasNext();) {
            Defect newDefect = (Defect) i.next();
            Defect oldDefect = defectLog.getDefect(newDefect.number);
            if (oldDefect == null) {
                addedCount++;
                defectLog.writeDefect(newDefect);
            } else {
                Defect originalDefect = (Defect) oldDefect.clone();
                oldDefect.defect_type = merge(oldDefect.defect_type, newDefect.defect_type);
                oldDefect.phase_injected = merge(oldDefect.phase_injected, newDefect.phase_injected);
                oldDefect.phase_removed = merge(oldDefect.phase_removed, newDefect.phase_removed);
                oldDefect.description = merge(oldDefect.description, newDefect.description);
                oldDefect.fix_time = merge(oldDefect.fix_time, newDefect.fix_time);
                oldDefect.fix_defect = merge(oldDefect.fix_defect, newDefect.fix_defect);
                if (originalDefect.equals(oldDefect)) {
                    unchangedCount++;
                } else {
                    updatedCount++;
                    defectLog.writeDefect(oldDefect);
                }
            }
        }
       
        if (addedCount == 0 && updatedCount == 0) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.