Commit 4fd3bb0e authored by David Trott's avatar David Trott

Fixed issue with builds containing spaces in the thrift executable name (windows).

parent 07c77088
......@@ -71,7 +71,8 @@ final class Thrift {
public int compile() throws CommandLineException {
for (File thriftFile : thriftFiles) {
Commandline cl = new Commandline(executable);
Commandline cl = new Commandline();
cl.setExecutable(executable);
cl.addArguments(buildThriftCommand(thriftFile).toArray(new String[]{}));
final int result = CommandLineUtils.executeCommandLine(cl, null, output, error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment