Class TemporaryDirectory

    • Constructor Detail

      • TemporaryDirectory

        public TemporaryDirectory()
        Creates a temporary directory to which the binaries should be saved
    • Method Detail

      • deleteOldInstancesOnStart

        public TemporaryDirectory deleteOldInstancesOnStart()
        Sets flag that old instances of binaries should be deleted before creating new copies
        Returns:
        this
      • markDeleteOnExit

        public TemporaryDirectory markDeleteOnExit()
        Sets flag that the copied library should be deleted after runtime shutdown
        Returns:
        this
      • getPath

        public Path getPath()
        Gets the path to the temp folder
        Returns:
        temp folder containing the copied binaries
      • delete

        public void delete()
        deletes the temp folder and its content