答案 0 :(得分:0)
文档在指南中。您需要的部分是:
但快速启动API明智的是:
IProject project = ...;
IManagedBuildInfo buildInfo = ManagedBuildManager.getBuildInfo(project);
if (buildInfo != null) { // you may also check for C Nature on the project as a precondition
String buildCommand = buildInfo.getBuildCommand();
// etc
}