예제 #1
0
def main(conffile=None):
    commands = Commands(conffile)

    commands.logger.info('> Getting modified client source')
    if commands.checksources(0):
        commands.gathermd5s(0, True)
        commands.unpackmodifiedclasses(0)
    commands.logger.info('> Getting modified server source')
    if commands.checksources(1):
        commands.gathermd5s(1, True)
        commands.unpackmodifiedclasses(1)
예제 #2
0
def main(conffile=None):
    commands = Commands(conffile)

    commands.logger.info ('> Getting modified client source')
    if commands.checksources(0):
        commands.gathermd5s(0, True)
        commands.unpackmodifiedclasses(0)
    commands.logger.info ('> Getting modified server source')
    if commands.checksources(1):
        commands.gathermd5s(1, True)
        commands.unpackmodifiedclasses(1)
예제 #3
0
def getmodsource(conffile=None):
    commands = Commands(conffile)

    try:
        commands.logger.info('> Getting modified client source')
        if commands.checksources(CLIENT):
            commands.gathermd5s(CLIENT, True)
            commands.unpackmodifiedclasses(CLIENT)
        commands.logger.info('> Getting modified server source')
        if commands.checksources(SERVER):
            commands.gathermd5s(SERVER, True)
            commands.unpackmodifiedclasses(SERVER)
    except Exception:  # pylint: disable-msg=W0703
        commands.logger.exception('FATAL ERROR')
        sys.exit(1)
예제 #4
0
def getmodsource(conffile=None):
    commands = Commands(conffile)

    try:
        commands.logger.info('> Getting modified client source')
        if commands.checksources(CLIENT):
            commands.gathermd5s(CLIENT, True)
            commands.unpackmodifiedclasses(CLIENT)
        commands.logger.info('> Getting modified server source')
        if commands.checksources(SERVER):
            commands.gathermd5s(SERVER, True)
            commands.unpackmodifiedclasses(SERVER)
    except Exception:  # pylint: disable-msg=W0703
        commands.logger.exception('FATAL ERROR')
        sys.exit(1)
def main(conffile):
    commands = Commands(conffile)

    commands.logger.info ('> Recompiling client...')
    clienttime = time.time()
    if commands.checksources(0):
        commands.cleanbindirs(0)
        commands.recompile(0)
        commands.logger.info ('> Done in %.2f seconds'%(time.time()-clienttime))

    commands.logger.info ('> Recompiling server...')
    servertime = time.time()
    if commands.checksources(1):
        commands.cleanbindirs(1)
        commands.recompile(1)
        commands.logger.info ('> Done in %.2f seconds'%(time.time()-servertime))
예제 #6
0
def main(conffile=None):
    commands = Commands(conffile)

    commands.logger.info('> Recompiling client...')
    clienttime = time.time()
    if commands.checksources(0):
        commands.cleanbindirs(0)
        commands.recompile(0)
        commands.logger.info('> Done in %.2f seconds' %
                             (time.time() - clienttime))

    commands.logger.info('> Recompiling server...')
    servertime = time.time()
    if commands.checksources(1):
        commands.cleanbindirs(1)
        commands.recompile(1)
        commands.logger.info('> Done in %.2f seconds' %
                             (time.time() - servertime))
예제 #7
0
def recompile(conffile=None):
    commands = Commands(conffile)

    try:
        commands.logger.info('> Recompiling client...')
        clienttime = time.time()
        if commands.checksources(CLIENT):
            commands.cleanbindirs(CLIENT)
            commands.recompile(CLIENT)
            commands.logger.info('> Done in %.2f seconds' % (time.time() - clienttime))

        commands.logger.info('> Recompiling server...')
        servertime = time.time()
        if commands.checksources(SERVER):
            commands.cleanbindirs(SERVER)
            commands.recompile(SERVER)
            commands.logger.info('> Done in %.2f seconds' % (time.time() - servertime))
    except Exception:  # pylint: disable-msg=W0703
        commands.logger.exception('FATAL ERROR')
        sys.exit(1)
예제 #8
0
def recompile(conffile=None):
    commands = Commands(conffile)

    try:
        commands.logger.info('> Recompiling client...')
        clienttime = time.time()
        if commands.checksources(CLIENT):
            commands.cleanbindirs(CLIENT)
            commands.recompile(CLIENT)
            commands.logger.info('> Done in %.2f seconds' %
                                 (time.time() - clienttime))

        commands.logger.info('> Recompiling server...')
        servertime = time.time()
        if commands.checksources(SERVER):
            commands.cleanbindirs(SERVER)
            commands.recompile(SERVER)
            commands.logger.info('> Done in %.2f seconds' %
                                 (time.time() - servertime))
    except Exception:  # pylint: disable-msg=W0703
        commands.logger.exception('FATAL ERROR')
        sys.exit(1)