/** * Adds the contents of a resources directory to the image. * * @param resourceFilesDirectory the directory containing the project's resources * @param pathFilter filter that determines which files (not directories) should be added * @return this * @throws IOException if adding the layer fails */ public JavaContainerBuilder addResources(Path resourceFilesDirectory, Predicate<Path> pathFilter) throws IOException { return addDirectory(resourceFilesDirectory, RESOURCES_PATH, LayerType.RESOURCES, pathFilter); }
/** * Adds the contents of a classes directory to the image. * * @param classFilesDirectory the directory containing the class files * @param pathFilter filter that determines which files (not directories) should be added * @return this * @throws IOException if adding the layer fails */ public JavaContainerBuilder addClasses(Path classFilesDirectory, Predicate<Path> pathFilter) throws IOException { return addDirectory(classFilesDirectory, CLASSES_PATH, LayerType.CLASSES, pathFilter); }
/** * Adds the contents of a resources directory to the image. * * @param resourceFilesDirectory the directory containing the project's resources * @param pathFilter filter that determines which files (not directories) should be added * @return this * @throws IOException if adding the layer fails */ public JavaContainerBuilder addResources(Path resourceFilesDirectory, Predicate<Path> pathFilter) throws IOException { return addDirectory(resourceFilesDirectory, RESOURCES_PATH, LayerType.RESOURCES, pathFilter); }
/** * Adds the contents of a classes directory to the image. * * @param classFilesDirectory the directory containing the class files * @param pathFilter filter that determines which files (not directories) should be added * @return this * @throws IOException if adding the layer fails */ public JavaContainerBuilder addClasses(Path classFilesDirectory, Predicate<Path> pathFilter) throws IOException { return addDirectory(classFilesDirectory, CLASSES_PATH, LayerType.CLASSES, pathFilter); }
/** * Adds the contents of a classes directory to the image. * * @param classFilesDirectory the directory containing the class files * @param pathFilter filter that determines which files (not directories) should be added * @return this * @throws IOException if adding the layer fails */ public JavaContainerBuilder addClasses(Path classFilesDirectory, Predicate<Path> pathFilter) throws IOException { return addDirectory(classFilesDirectory, CLASSES_PATH, LayerType.CLASSES, pathFilter); }
/** * Adds the contents of a resources directory to the image. * * @param resourceFilesDirectory the directory containing the project's resources * @param pathFilter filter that determines which files (not directories) should be added * @return this * @throws IOException if adding the layer fails */ public JavaContainerBuilder addResources(Path resourceFilesDirectory, Predicate<Path> pathFilter) throws IOException { return addDirectory(resourceFilesDirectory, RESOURCES_PATH, LayerType.RESOURCES, pathFilter); }