public Artifact load()

in core/src/main/java/com/spotify/missinglink/ArtifactLoader.java [70:81]


  public Artifact load(ArtifactName artifactName, File path) throws IOException {
    if (!path.exists()) {
      throw new IllegalArgumentException("Path must exist: " + path);
    }
    if (!path.isFile() && !path.isDirectory()) {
      throw new IllegalArgumentException("Path must be a file or directory: " + path);
    }
    if (path.isFile()) {
      return loadFromJar(artifactName, path);
    }
    return loadFromDirectory(artifactName, path);
  }