Examples of DiffResult


Examples of liquibase.diff.DiffResult

            return;
        }

        runCompleteChangeLog();

        DiffResult diffResult = DiffGeneratorFactory.getInstance().compare(getDatabase(), null, new CompareControl());
        new DiffToReport(diffResult, System.out).print();
    }
View Full Code Here

Examples of liquibase.diff.DiffResult

            return;
        }

        runCompleteChangeLog();

        DiffResult diffResult = DiffGeneratorFactory.getInstance().compare(getDatabase(), null, new CompareControl());
        new DiffToChangeLog(diffResult, new DiffOutputControl(true, true, true)).print(System.out);
    }
View Full Code Here

Examples of net.sourceforge.processdash.tool.diff.engine.DiffResult

        xml.startTag(null, DOC_TAG);
    }

    @Override
    public void fileAnalysisFinished(DiffEvent e) throws IOException {
        DiffResult r = e.getDiffResult();
        if (r == null)
            return;

        xml.startTag(null, FILE_TAG);
        xml.attribute(null, NAME_ATTR, r.getFile().getFilename());
        xml.attribute(null, CHANGE_ATTR, TYPE_ATTR_NAMES[r.getChangeType()
                .ordinal()]);
        xml.attribute(null, TYPE_ATTR, AbstractLanguageFilter.getFilterName(r
                .getLanguageFilter()));
        int[] thisFileCounts = r.getLocCounts();
        if (thisFileCounts != null) {    // binary files have null locCounts
            writeLocCounts(thisFileCounts);
            for (int i = 0; i < thisFileCounts.length; i++) {
                this.locCounts[i] += thisFileCounts[i];
            }
View Full Code Here

Examples of net.sourceforge.processdash.tool.diff.engine.DiffResult

    public File getReportFile() {
        return reportFile;
    }

    public void fileAnalysisFinished(DiffEvent e) {
        DiffResult diff = e.getDiffResult();
        if (diff == null)
            return;

        // record this file in the list of changes.
        int pos = files.size();
        files.add(diff);
        typesSeen.add(diff.getChangeType());

        // keep a running total of the LOC counts.
        for (AccountingType type : AccountingType.values())
            locCounts[type.ordinal()] += diff.getLocCount(type);
       
        // write redlines, if applicable
        if (diff.hasRedlines() && noRedlines == false) {
            out.write("<hr>\n");
            writeFileRedlines(diff, getFileAnchor(diff, pos));
        }
    }
View Full Code Here

Examples of net.sourceforge.processdash.tool.diff.engine.DiffResult

        out.write(resources.getHTML("Report.File_Type"));
        out.write("</th></tr>\n");

        // write a row for each file
        for (int i = 0; i < files.size();  i++) {
            DiffResult file = files.get(i);
            if (file.getChangeType() == type) {
                out.write("<tr><td>");
                boolean hasRedlines = file.hasRedlines() && !noRedlines;
                if (hasRedlines)
                    out.write("<a href=\"#" + getFileAnchor(file, i) + "\">");
                out.write(HTMLUtils.escapeEntities(file.getFile().getFilename()));
                if (hasRedlines)
                    out.write("<span title=\""
                            + resources.getHTML("Report.SET_Drag_Tooltip")
                            + "\" class=\"setHelp\">&nbsp;</span></a>");
                out.write("</td>");
                for (AccountingType col : AccountingType.values()) {
                    if (SHOW_COLUMNS[type.ordinal()][col.ordinal()]) {
                        out.write("<td>");
                        out.write(Integer.toString(file.getLocCount(col)));
                        out.write("</td>");
                    }  
                }
                out.write("<td>");
                out.write(HTMLUtils.escapeEntities(AbstractLanguageFilter
                        .getFilterName(file.getLanguageFilter())));
                out.write("</td></tr>\n");
            }
        }

        out.write("</table>\n");
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.