浏览代码

Fixing Mercurial MQ extension check

tags/full-jdk7u79+4
Ivan Dubrov 9 年前
父节点
当前提交
b217430b13
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6
    6
      build.gradle

+ 6
- 6
build.gradle 查看文件

@@ -36,19 +36,19 @@ project('hotspot') {
task checkMercurial(description: 'Verify Mercurial is installed') << {
def os = new ByteArrayOutputStream()
try {
exec {
def result = exec {
executable 'hg'
args 'help', 'init'
args 'help', 'qinit'
standardOutput = os
errorOutput = os
ignoreExitValue = true
}
if (result.getExitValue() != 0) {
throw new GradleException("Mercurial does not have mq extension installed! Consult README.md for details.")
}
} catch (GradleException e) {
throw new GradleException("Failed to execute 'hg'. Make sure you have Mercurial installed!")
}
def str = os.toString()
if (!str.contains('--mq')) {
throw new GradleException("Mercurial does not have mq extension installed! Consult README.md for details.")
}
}

task init(description: 'Initialize HotSpot repository', dependsOn: checkMercurial) << {

正在加载...
取消
保存