public static void main(String[] args) {
try {
/*
* trying to automatically configure include path by running cpp -v
*/
Process p = Runtime.getRuntime().exec("cpp -v");
InputStreamReader stdInput = new //BufferedReader(new
InputStreamReader(p.getInputStream()) ; //);
// read the output from the command
System.out.println("Here is the standard output of the command:\n");
while (stdInput.ready() ) {
System.out.print(stdInput.read());
}
}
catch (IOException e) {
System.out.println("exception happened - here's what I know: ");
e.printStackTrace();
System.exit(-1);
}
}
IncludeConfs.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:VerveineC-Cpp
作者:
评论列表
文章目录