All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rsc.diffmjar.Main.scala Maven / Gradle / Ivy

There is a newer version: 0.0.0-758-7ae5dd31
Show newest version
// Copyright (c) 2017-2018 Twitter, Inc.
// Licensed under the Apache License, Version 2.0 (see LICENSE.md).
package rsc.diffmjar

import java.nio.file._
import rsc.checkbase._
import rsc.checkmjar

object Main extends MainBase[Settings, Int, Path, Path] {
  def settings(args: List[String]) = {
    Settings.parse(args)
  }

  def inputs(settings: Settings) = {
    0.until(settings.nscClasspath.length).toList
  }

  def nscResult(settings: Settings, i: Int) = {
    Right(settings.nscClasspath(i))
  }

  def rscResult(settings: Settings, i: Int) = {
    Right(settings.rscClasspath(i))
  }

  def checker(settings: Settings, nscResult: Path, rscResult: Path) = {
    new checkmjar.Checker(nscResult, rscResult)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy