Esempio n. 1
0
def main(name, argv):
    if userNeedsHelp(argv):
        print('%s %s' % (name, VERSION))
        print('Usage: %s <directory-with-patches> <m2repo>')
        print('')
        print('Apply the patches in <directory-with-patches> to the')
        print('Maven 2 Repository located at <m2repo>')
        return

    patchDir = mustBeDirectory(argv[0])
    repoDir = mustBeDirectory(argv[1])

    configLogger(repoDir + ".log")
    log.info('%s %s' % (name, VERSION))

    tool = ApplyPatches()
    tool.run(patchDir, repoDir)
def main(name, argv):
    if userNeedsHelp(argv):
        print('%s %s' % (name, VERSION))
        print('Usage: %s <directory-with-patches> <m2repo>')
        print('')
        print('Apply the patches in <directory-with-patches> to the')
        print('Maven 2 Repository located at <m2repo>')
        return

    patchDir = mustBeDirectory(argv[0])
    repoDir = mustBeDirectory(argv[1])

    configLogger(repoDir + ".log")
    log.info('%s %s' % (name, VERSION))

    tool = ApplyPatches()
    tool.run(patchDir, repoDir)
def main(name, argv):
    if userNeedsHelp(argv):
        print('%s %s' % (name, VERSION))
        print('Usage: %s <m2repo>')
        print('')
        print('Move the sources of Eclipse plugins to the right place')
        print('so Maven 2 can find them.')
        return

    repoDir = mustBeDirectory(argv[0])

    configLogger(repoDir + "-analyze.log")
    log.info('%s %s' % (name, VERSION))

    tool = Analyzer(repoDir)
    tool.run()

    log.info('Done.')
def main(name, argv):
    if userNeedsHelp(argv):
        print('%s %s' % (name, VERSION))
        print('Usage: %s <m2repo>')
        print('')
        print('Move the sources of Eclipse plugins to the right place')
        print('so Maven 2 can find them.')
        return

    repoDir = mustBeDirectory(argv[0])

    configLogger(repoDir + "-analyze.log")
    log.info('%s %s' % (name, VERSION))

    tool = Analyzer(repoDir)
    tool.run()
    
    log.info('Done.')
def main(name, argv):
    if userNeedsHelp(argv) or len(argv) != 2:
        print("%s %s" % (name, VERSION))
        print("Usage: %s <m2repo> <groupId:artifactId:version")
        print("")
        print("Create a POM file with the dependencyManagement element")
        print("for all POMs found in the repository.")
        return

    repoDir = mustBeDirectory(argv[0])
    artifact = argv[1]

    configLogger(repoDir + "-dm.log")
    log.info("%s %s" % (name, VERSION))

    tool = DependencyManagementTool(repoDir, artifact)
    tool.run()

    log.info("Done.")
def main(name, argv):
    if userNeedsHelp(argv) or len(argv) != 2:
        print('%s %s' % (name, VERSION))
        print('Usage: %s <m2repo> <groupId:artifactId:version')
        print('')
        print('Create a POM file with the dependencyManagement element')
        print('for all POMs found in the repository.')
        return

    repoDir = mustBeDirectory(argv[0])
    artifact = argv[1]

    configLogger(repoDir + "-dm.log")
    log.info('%s %s' % (name, VERSION))

    tool = DependencyManagementTool(repoDir, artifact)
    tool.run()

    log.info('Done.')