diff options
author | James Z.M. Gao <gaozhiming@360.cn> | 2021-01-06 11:51:41 +0800 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2021-02-26 21:06:46 +0100 |
commit | 93ae7af5ba6b70530e4d812b50fed4afa0827f44 (patch) | |
tree | 6f2604c0f28fe78d280bc7b892324234819f5623 /build | |
parent | 6140fb27e0b15de2ba042401073435b049482389 (diff) | |
download | thrift-93ae7af5ba6b70530e4d812b50fed4afa0827f44.tar.gz |
THRIFT-5334 change version of thrift-maven-plugin to 0.14.0
Client: Java
Patch: James Z.M. Gao
This closes #2304
Diffstat (limited to 'build')
-rwxr-xr-x | build/veralign.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/build/veralign.sh b/build/veralign.sh index 2eb4b5d23..7080237a2 100755 --- a/build/veralign.sh +++ b/build/veralign.sh @@ -57,6 +57,7 @@ FILES[configure.ac]=configureReplace FILES[contrib/Rebus/Properties/AssemblyInfo.cs]=simpleReplace FILES[contrib/thrift.spec]=simpleReplace FILES[contrib/zeromq/csharp/AssemblyInfo.cs]=simpleReplace +FILES[contrib/thrift-maven-plugin/pom.xml]=pomReplace FILES[doc/specs/idl.md]=simpleReplace FILES[lib/as3/gradle.properties]=simpleReplace FILES[lib/d/src/thrift/base.d]=simpleReplace @@ -155,7 +156,7 @@ validateVersion "${NEWVERSION}" || exit $? # function escapeVersion { - echo "$(echo $1 | sed 's/\./\\./g' | sed 's/\[/\\\[/g' | sed 's/\]/\\\]/g')" + echo "$(echo "$1" | sed 's/\./\\./g' | sed 's/\[/\\\[/g' | sed 's/\]/\\\]/g')" } # Set up verbose hilighting if running interactive @@ -239,6 +240,18 @@ function pubspecReplace } # +# pomReplace: replace a specific version field in a maven pom file +# must be a top level "version" field in the xml structure +# \param $1 filename to do replacements on +# \returns 0 on success +# + +function pomReplace +{ + replace "$1" "^ <version>${OLDVERSION}<\/version>" " <version>${NEWVERSION}<\/version>" +} + +# # replace: replace occurrences of one string with another # the file specified must contain the old string at least once # in order to be successful. |