Search in sources :

Example 6 with DefectLog

use of net.sourceforge.processdash.log.defects.DefectLog in project processdash by dtuma.

the class RestoreIndivDataWorker method analyze.

public void analyze(String path, Defect d) {
    DashHierarchy hier = ctx.getHierarchy();
    PropertyKey node = hier.findClosestKey(path);
    DefectLogID defectLogID = hier.defectLog(node, defectDirectory);
    DefectLog defectLog = new DefectLog(defectLogID.filename, defectLogID.path.path(), ctx.getData());
    if (defectLog.getDefect(d.number) == null)
        defectLog.writeDefect(d);
}
Also used : DefectLog(net.sourceforge.processdash.log.defects.DefectLog) DashHierarchy(net.sourceforge.processdash.hier.DashHierarchy) DefectLogID(net.sourceforge.processdash.log.defects.DefectLogID) PropertyKey(net.sourceforge.processdash.hier.PropertyKey)

Aggregations

DefectLog (net.sourceforge.processdash.log.defects.DefectLog)6 PropertyKey (net.sourceforge.processdash.hier.PropertyKey)5 Defect (net.sourceforge.processdash.log.defects.Defect)3 DashHierarchy (net.sourceforge.processdash.hier.DashHierarchy)2 DefectLogID (net.sourceforge.processdash.log.defects.DefectLogID)2 Enumeration (java.util.Enumeration)1 Iterator (java.util.Iterator)1 ProcessDashboard (net.sourceforge.processdash.ProcessDashboard)1 Prop (net.sourceforge.processdash.hier.Prop)1 TinyCGIException (net.sourceforge.processdash.net.http.TinyCGIException)1