Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.pity.api.execution;
 
 
 import java.io.File;
All plugins that want to be able to execute a command should extend this. This is a convenience implementation for CommandExecutor
abstract public class AbstractCommandExecutor implements CommandExecutor {
    final protected File tempDir;
    @Inject
    public AbstractCommandExecutor(WorkingDirectoryProvider workingDirectoryProviderthrows IOException {
        this. = workingDirectoryProvider;
         = new File(FileUtils.getTempDirectory(), "pity_" + RandomStringUtils.randomAlphanumeric(10));
        FileUtils.forceMkdir();
    }

    
The working directory to use used to execute the process

Returns:
File to the working directory.
    public File getWorkingDirectory() {
    }
New to GrepCode? Check out our FAQ X