Class FileSystemDeployer

java.lang.Object
org.astonbitecode.j4rs.api.deploy.FileSystemDeployer

public class FileSystemDeployer extends Object
Deploys a resource to be used by j4rs.
  • Constructor Details

    • FileSystemDeployer

      public FileSystemDeployer()
      Generates a default FileSystemDeployer with target the working directory
    • FileSystemDeployer

      public FileSystemDeployer(String deployTarget)
      Generates a FileSystemDeployer defining the deploy target
      Parameters:
      deployTarget - The target path for the deployments
  • Method Details

    • deploy

      public void deploy(String path) throws IOException
      Deploys a resource. The resource may be automatically added to the classpath for j4rs
      Parameters:
      path - The path of the resource
      Throws:
      IOException - In case the path is invalid or the resource cannot be accessed