support for solc 0.5
@@ -239,7 +239,13 @@ public class SolidityCompiler {
List<String> commandParts = prepareCommandOptions(optimize, combinedJson, options);
commandParts.add(source.getAbsolutePath());
-
+ //new in solidity 0.5.0: using stdin requires an explicit "-". The following output
+ //of 'solc' if no file is provided, e.g.,: solc --combined-json abi,bin,interface,metadata
+ //
+ // No input files given. If you wish to use the standard input please specify "-" explicitly.
+ //
+ // For older solc version "-" is not an issue as it is accepet as well
+ commandParts.add("-");
ProcessBuilder processBuilder = new ProcessBuilder(commandParts)
.directory(solc.getExecutable().getParentFile());
processBuilder.environment().put("LD_LIBRARY_PATH",
