Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.pity.api.execution;
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;
    public AbstractCommandExecutor(WorkingDirectoryProvider workingDirectoryProviderthrows IOException {
        this. = workingDirectoryProvider;
         = new File(FileUtils.getTempDirectory(), "pity_" + RandomStringUtils.randomAlphanumeric(10));

The working directory to use used to execute the process

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