@@ -77,7 +77,9 @@ class ExecResult {
7777 * @param hostPath the file system path on the host
7878 * @param containerPath the file system path inside the container
7979 * @param mode the bind mode
80+ * @deprecated use {@link GenericContainer#withCopyToContainer(Transferable, String)}
8081 */
82+ @ Deprecated
8183 default void addFileSystemBind (final String hostPath , final String containerPath , final BindMode mode ) {
8284 addFileSystemBind (hostPath , containerPath , mode , SelinuxContext .SHARED );
8385 }
@@ -90,7 +92,9 @@ default void addFileSystemBind(final String hostPath, final String containerPath
9092 * @param containerPath the file system path inside the container
9193 * @param mode the bind mode
9294 * @param selinuxContext selinux context argument to use for this file
95+ * @deprecated use {@link GenericContainer#withCopyToContainer(Transferable, String)}
9396 */
97+ @ Deprecated
9498 void addFileSystemBind (String hostPath , String containerPath , BindMode mode , SelinuxContext selinuxContext );
9599
96100 /**
@@ -134,7 +138,9 @@ default void addFileSystemBind(final String hostPath, final String containerPath
134138 * @param hostPath the file system path on the host
135139 * @param containerPath the file system path inside the container
136140 * @return this
141+ * @deprecated use {@link GenericContainer#withCopyToContainer(Transferable, String)}
137142 */
143+ @ Deprecated
138144 default SELF withFileSystemBind (String hostPath , String containerPath ) {
139145 return withFileSystemBind (hostPath , containerPath , BindMode .READ_WRITE );
140146 }
@@ -146,7 +152,9 @@ default SELF withFileSystemBind(String hostPath, String containerPath) {
146152 * @param containerPath the file system path inside the container
147153 * @param mode the bind mode
148154 * @return this
155+ * @deprecated use {@link GenericContainer#withCopyToContainer(Transferable, String)}
149156 */
157+ @ Deprecated
150158 SELF withFileSystemBind (String hostPath , String containerPath , BindMode mode );
151159
152160 /**
@@ -297,7 +305,9 @@ default SELF withEnv(String key, Function<Optional<String>, String> mapper) {
297305 * @param containerPath path this should be mapped to inside the container
298306 * @param mode access mode for the file
299307 * @return this
308+ * @deprecated use {@link GenericContainer#withCopyToContainer(Transferable, String)}
300309 */
310+ @ Deprecated
301311 default SELF withClasspathResourceMapping (
302312 final String resourcePath ,
303313 final String containerPath ,
@@ -316,7 +326,9 @@ default SELF withClasspathResourceMapping(
316326 * @param mode access mode for the file
317327 * @param selinuxContext selinux context argument to use for this file
318328 * @return this
329+ * @deprecated use {@link GenericContainer#withCopyToContainer(Transferable, String)}
319330 */
331+ @ Deprecated
320332 SELF withClasspathResourceMapping (
321333 String resourcePath ,
322334 String containerPath ,
0 commit comments