Automated g4 rollback of changelist 350190817

PiperOrigin-RevId: 350203158
This commit is contained in:
isabellekim 2021-01-05 16:06:08 -05:00 committed by ikim24
parent a2d95a7870
commit a7fb10c4bd

View File

@ -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'