Examples of warningCount()


Examples of com.custardsource.dybdob.WarningRecord.warningCount()

            } else {
                getLog().info(String.format("Unable to obtain old warning count for %s; may be first run of this artifact version. New count is %s", record.source(), record.warningCount()));
                recordWarningCountInDatabase(record);
            }
        }
        else if (record.warningCount() < oldCount.warningCount()) {
            getLog().info(String.format("Well done! Warning count for %s decreased from %s to %s", record.source(), oldCount.warningCount(), record.warningCount()));
            if (!readOnly) {
                recordWarningCountInDatabase(record);
            }
        } else if (oldCount.warningCount() == record.warningCount()) {
View Full Code Here

Examples of com.custardsource.dybdob.WarningRecord.warningCount()

                getLog().info(String.format("Unable to obtain old warning count for %s; may be first run of this artifact version. New count is %s", record.source(), record.warningCount()));
                recordWarningCountInDatabase(record);
            }
        }
        else if (record.warningCount() < oldCount.warningCount()) {
            getLog().info(String.format("Well done! Warning count for %s decreased from %s to %s", record.source(), oldCount.warningCount(), record.warningCount()));
            if (!readOnly) {
                recordWarningCountInDatabase(record);
            }
        } else if (oldCount.warningCount() == record.warningCount()) {
            getLog().info(String.format("Warning count for %s remains steady at %s", record.source(), record.warningCount()));
View Full Code Here

Examples of com.custardsource.dybdob.WarningRecord.warningCount()

        else if (record.warningCount() < oldCount.warningCount()) {
            getLog().info(String.format("Well done! Warning count for %s decreased from %s to %s", record.source(), oldCount.warningCount(), record.warningCount()));
            if (!readOnly) {
                recordWarningCountInDatabase(record);
            }
        } else if (oldCount.warningCount() == record.warningCount()) {
            getLog().info(String.format("Warning count for %s remains steady at %s", record.source(), record.warningCount()));
        } else {
            String diff = generateDiff(oldCount, record);
            if (operationMode == OperationMode.FORCE) {
                getLog().warn(String.format("Against my better judgement, forcing warning count increase for %s from %s to %s; new warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
View Full Code Here

Examples of com.custardsource.dybdob.WarningRecord.warningCount()

        } else if (oldCount.warningCount() == record.warningCount()) {
            getLog().info(String.format("Warning count for %s remains steady at %s", record.source(), record.warningCount()));
        } else {
            String diff = generateDiff(oldCount, record);
            if (operationMode == OperationMode.FORCE) {
                getLog().warn(String.format("Against my better judgement, forcing warning count increase for %s from %s to %s; new warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
                recordWarningCountInDatabase(record);
            } else {
                getLog().error(String.format("Failing build with increase for %s from %s to %s; changed warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
                addFailure(String.format("Failing build with %s warning count %s higher than previous mark of %s; see %s for warning details", record.source(), record.warningCount(), oldCount.warningCount(), logFile));
            }
View Full Code Here

Examples of com.custardsource.dybdob.WarningRecord.warningCount()

            String diff = generateDiff(oldCount, record);
            if (operationMode == OperationMode.FORCE) {
                getLog().warn(String.format("Against my better judgement, forcing warning count increase for %s from %s to %s; new warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
                recordWarningCountInDatabase(record);
            } else {
                getLog().error(String.format("Failing build with increase for %s from %s to %s; changed warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
                addFailure(String.format("Failing build with %s warning count %s higher than previous mark of %s; see %s for warning details", record.source(), record.warningCount(), oldCount.warningCount(), logFile));
            }
        }
    }
View Full Code Here

Examples of com.custardsource.dybdob.WarningRecord.warningCount()

            if (operationMode == OperationMode.FORCE) {
                getLog().warn(String.format("Against my better judgement, forcing warning count increase for %s from %s to %s; new warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
                recordWarningCountInDatabase(record);
            } else {
                getLog().error(String.format("Failing build with increase for %s from %s to %s; changed warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
                addFailure(String.format("Failing build with %s warning count %s higher than previous mark of %s; see %s for warning details", record.source(), record.warningCount(), oldCount.warningCount(), logFile));
            }
        }
    }

    private String generateDiff(WarningRecord oldCount, WarningRecord record) {
View Full Code Here

Examples of com.sun.tools.javac.main.JavaCompiler.warningCount()

        reportStats(out);

        Context ctx = ((JavacTaskImpl) task).getContext();
        JavaCompiler c = JavaCompiler.instance(ctx);
        c.printCount("error", c.errorCount());
        c.printCount("warn", c.warningCount());
    }

    void processArgs(String... args) throws BadArgs {
        javacOpts = new ArrayList<>();
        javacFiles = new ArrayList<>();
View Full Code Here

Examples of flex2.compiler.Logger.warningCount()

    public static int warningCount()
    {
        Logger l = logger.get();
        if (l != null)
        {
            return l.warningCount();
        }
        else
        {
            return 0;
        }
View Full Code Here

Examples of flex2.compiler.Logger.warningCount()

    public static int warningCount()
    {
        Logger l = logger.get();
        if (l != null)
        {
            return l.warningCount();
        }
        else
        {
            return 0;
        }
View Full Code Here

Examples of org.modeshape.common.collection.Problems.warningCount()

    protected RepositoryConfiguration assertValidWithWarnings( int warnings,
                                                               RepositoryConfiguration config ) {
        Problems results = config.validate();
        assertThat(results.toString(), results.hasErrors(), is(false));
        assertThat(results.toString(), results.warningCount(), is(warnings));
        return config;
    }

    protected RepositoryConfiguration assertValid( String configContent ) {
        return assertValid(assertRead(configContent));
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.