Closed TadeasKriz closed 9 years ago
I'd rather see something like
class CommandTool {
...
public static final File WORKING_DIRECTORY_NONE = null;
...
}
than leaving this for runtime (the name should be shorter). You would then use:
Tasks.prepare(CommandTool.class)
.workingDirectory(CommandTool.WORKING_DIRECTORY_NONE)
that could be CommandTool.CURRENT_PROCESS_DIRECTORY
http://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html#directory%28java.io.File%29
Does it make sense to rather use workingDirectory(Object) and fail runtime if it's not File nor CharSequence?