Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.pity.api.preprocess;

CommandPreProcessor allow for the execution command to be 'mangled'. This is useful when you have a wrapper that is a wrapper around other programs. You could, for example, take a gradle process and convert it into a ./gradlew command
 
 public interface CommandPreProcessor {

    
The order that the will be applied.

Returns:
an integer, where order of execution is java.lang.Integer.MAX_VALUE, java.lang.Integer.MAX_VALUE - 1, ...
    int commandPrecedence();

    
Given a CommandOptions convert it into a new CommandOptions

Parameters:
command previous options
Returns:
a new CommandOptions, the original value, or null. When null is returned, the previous value will be sued.
New to GrepCode? Check out our FAQ X