diff --git a/lib/build.gradle b/lib/build.gradle index 3c2cd9c6a..0300fe7c7 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -175,16 +175,13 @@ task generateApiXml(type: Javadoc) { doLast { // Escape incorrect ampersands in API XML file if (OperatingSystem.current().isLinux()) { - exec { - commandLine "sed", "-i", "s/ & / \\& /g", "lib/${apiName}.xml" - } + ["sed", "-i", "s/ & / \\& /g", "lib/${apiName}.xml"].execute() } else { - exec { - commandLine "sed", "-i", "''", "s/ & / \\& /g", "lib/${apiName}.xml" - } + ["sed", "-i", "''", "s/ & / \\& /g", "lib/${apiName}.xml"].execute() } } } + task generateJdiffReport(type: Javadoc) { if (project.hasProperty('oldApi')) { def outputPath = project.hasProperty('outputPath') ? project.property('outputPath') : 'diffs-out'