scala.meta.internal.io.ClasspathFile.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io_sjs0.6_2.11 Show documentation
Show all versions of io_sjs0.6_2.11 Show documentation
Scalameta APIs for input/output
The newest version!
package scala.meta.internal.io
import scala.meta.io.AbsolutePath
/** A single file element of a classpath.
*
* @param path The path to the file, either on disk or inside a jar file system.
* @param enclosingJar The path to the jar file containing this file, if any.
* @param enclosingManifestJar The manifest jar file linking to the enclosing jar, if any.
*/
final case class ClasspathFile(
path: AbsolutePath,
enclosingJar: Option[AbsolutePath],
enclosingManifestJar: Option[ClasspathFile]
) {
def pathOnDisk: AbsolutePath = enclosingJar.getOrElse(path)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy