Class DependencyInstallation

java.lang.Object
org.ek9lang.core.DependencyInstallation

public final class DependencyInstallation extends Object
THE place a dependency lives in a library folder: unpacked as the directory <lib>/<name>-<version>, or zipped as <lib>/<name>-<version>.zip (the zip's name is FileHandling's). Made by FileHandling.dependencyInstallation(); ask IsDependencyInstalled the question "is it there" - the CLI's resolver (PackageResolver) and the compiler's front end (E06263) both go through these two, so they cannot disagree. Never build either path by hand.
  • Constructor Details

    • DependencyInstallation

      DependencyInstallation(File libraryDirectory, FileHandling fileHandling)
  • Method Details

    • unpackedDirectory

      public File unpackedDirectory(String dependencyVector)
      The folder a dependency is unpacked into, given its dependency vector (name-version).
    • zipFile

      public File zipFile(String dependencyVector)
      The zip a dependency is delivered as, given its dependency vector (name-version).