Class DockerfileDeployer.AddFile
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.options.DockerfileDeployer.AddFile
-
- All Implemented Interfaces:
Comparable<DockerfileDeployer.AddFile>
- Enclosing class:
- DockerfileDeployer
protected static class DockerfileDeployer.AddFile extends Object implements Comparable<DockerfileDeployer.AddFile>
A simple holder class for files to add to a Dockerfile.
-
-
Constructor Summary
Constructors Constructor Description AddFile(String source, String destination)Create anDockerfileDeployer.AddFile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DockerfileDeployer.AddFile o)booleanequals(Object o)StringgetDestination()Obtain the destination in the Dockerfile.StringgetSource()Obtain the source file name.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
AddFile
public AddFile(String source, String destination)
Create anDockerfileDeployer.AddFile.- Parameters:
source- the source file name.destination- the destination in the Dockerfile
-
-
Method Detail
-
getSource
public String getSource()
Obtain the source file name.- Returns:
- the source file name
-
getDestination
public String getDestination()
Obtain the destination in the Dockerfile.- Returns:
- the destination in the Dockerfile
-
compareTo
public int compareTo(DockerfileDeployer.AddFile o)
- Specified by:
compareToin interfaceComparable<DockerfileDeployer.AddFile>
-
-