Class FileContent

java.lang.Object
dev.snowdrop.buildpack.docker.FileContent
All Implemented Interfaces:
Content
Direct Known Subclasses:
EditableFileContent

public class FileContent extends Object implements Content
  • Constructor Details

    • FileContent

      public FileContent(File file)
    • FileContent

      public FileContent(String prefix, File file)
  • Method Details

    • getPrefix

      public String getPrefix()
    • getFile

      public File getFile()
    • getContainerEntries

      public List<ContainerEntry> getContainerEntries()
      Build a container entry from a File, (can also be directory) to be present in the container at prefix/name for a File, or prefix/relativePath for fies in a dir. Eg, given /a/one/a /a/two/a, passing prefix of /stiletto with /a results in /stiletto/one/a and /stiletto/two/a being created.
      Specified by:
      getContainerEntries in interface Content