예제 #1
0
        ohandler.create_makefile_dependencies(ofile, rc)
        ofile.close()
        return True

    # Print out all logs (from all kinds of objects)
    reqs.write_log(mstderr)
    topics.write_log(mstderr)
    # If there is a problem with the last requirement set included in
    # the requirements continuum and stop processing. (Note the logs
    # were already written out).
    if not reqs.is_usable():
        return False

    # The requirments are syntatically correct now: therefore it is
    # possible to do some analytics on them
    if not Analytics.run(config, reqs, topics):
        reqs.write_log(mstderr)
        reqs.write_analytics_result(mstderr)

        if hasattr(config, 'analytics_specs') \
                and 'stop_on_errors' in config.analytics_specs \
                and config.analytics_specs['stop_on_errors']:
            return False

    # Output everything
    ohandler.output(rc)
   
    return True

def main_impl(args, mstdout, mstderr):
    opts, config, mods = MainHelper.main_setup(args, mstdout, mstderr,
예제 #2
0
        latest_topicsc.create_makefile_dependencies(ofile)
        ofile.close()
        return True

    # Print out all logs (from all kinds of objects)
    topic_continuum.write_log(mstderr)
    # If there is a problem with the last requirement set included in
    # the requirements continuum and stop processing. (Note the logs
    # were already written out).
    if not topic_continuum.is_usable():
        return False

    # The requirements are syntactically correct now: therefore it is
    # possible to do some analytics on them.
    # Note that analytics are only run on the latest version.
    if not Analytics.run(config, latest_topicsc):
        latest_topicsc.write_log(mstderr)
        latest_topicsc.write_analytics_result(mstderr)

        if config.get_bool('processing.analytics.stop_on_errors', True):
            return False

    # Output everything
    topic_continuum.output()

    return True

def main_impl(args, mstdout, mstderr):
#    init_logging()
    config, input_mods = MainHelper.main_setup(args, mstdout, mstderr)
    return execute_cmds(config, input_mods, mstdout, mstderr)