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

org.infinispan.commons.maven.LocalArtifact Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.maven;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Represents a local artifact.
 *
 * @since 14.0
 **/
public class LocalArtifact extends AbstractArtifact {
   final Path path;

   public LocalArtifact(String path) {
      this.path = Paths.get(path);
   }

   @Override
   public Path resolveArtifact() {
      if (Files.exists(path)) {
         return path;
      } else {
         return null;
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy