Tabnine Logo
MountableFile.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.testcontainers.utility.MountableFile
constructor

Best Java code snippets using org.testcontainers.utility.MountableFile.<init> (Showing top 5 results out of 315)

origin: testcontainers/testcontainers-java

/**
 * Obtains a {@link MountableFile} corresponding to a file on the docker host filesystem.
 *
 * @param path the path to the resource
 * @param mode octal value of posix file mode (000..777)
 * @return a {@link MountableFile} that may be used to obtain a mountable path
 */
public static MountableFile forHostPath(final Path path, Integer mode) {
  return new MountableFile(path.toAbsolutePath().toString(), mode);
}
origin: testcontainers/testcontainers-java

/**
 * Obtains a {@link MountableFile} corresponding to a file on the docker host filesystem.
 *
 * @param path the path to the resource
 * @param mode octal value of posix file mode (000..777)
 * @return a {@link MountableFile} that may be used to obtain a mountable path
 */
public static MountableFile forHostPath(@NotNull final String path, Integer mode) {
  return new MountableFile(new File(path).toURI().toString(), mode);
}
origin: testcontainers/testcontainers-java

/**
 * Obtains a {@link MountableFile} corresponding to a resource on the classpath (including resources in JAR files)
 *
 * @param resourceName the classpath path to the resource
 * @param mode octal value of posix file mode (000..777)
 * @return a {@link MountableFile} that may be used to obtain a mountable path
 */
public static MountableFile forClasspathResource(@NotNull final String resourceName, Integer mode) {
  return new MountableFile(getClasspathResource(resourceName, new HashSet<>()).toString(), mode);
}
origin: org.testcontainers/testcontainers

/**
 * Obtains a {@link MountableFile} corresponding to a file on the docker host filesystem.
 *
 * @param path the path to the resource
 * @param mode octal value of posix file mode (000..777)
 * @return a {@link MountableFile} that may be used to obtain a mountable path
 */
public static MountableFile forHostPath(final Path path, Integer mode) {
  return new MountableFile(path.toAbsolutePath().toString(), mode);
}
origin: org.testcontainers/testcontainers

return new MountableFile(new File(path).toURI().toString(), mode);
org.testcontainers.utilityMountableFile<init>

Popular methods of MountableFile

  • forClasspathResource
  • forHostPath
  • getResolvedPath
  • copyFromJarToLocation
  • createTempDirectory
  • deleteOnExit
  • extractClassPathResourceToTempLocation
    Extract a file or directory tree from a JAR file to a temporary location. This allows Docker to moun
  • getClasspathResource
  • getFilesystemPath
  • getModeValue
  • getResourcePath
  • getUnixFileMode
  • getResourcePath,
  • getUnixFileMode,
  • unencodeResourceURIToFilePath,
  • getFileMode,
  • recursiveTar,
  • resolveFilesystemPath,
  • resolvePath,
  • transferTo

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now