private Process createProcess ( final File sourceFile ) throws IOException { notNull ( sourceFile ) ; final String [ ] commandLine = getCommandLine ( sourceFile . getPath ( ) ) ; LOG . debug ( "CommandLine arguments: {}" , Arrays . asList ( commandLine ) ) ; return new ProcessBuilder ( commandLine ) . redirectErrorStream ( true ) . start ( ) ; }
Creates process responsible for running lessc shell command by reading the file content from the sourceFilePath