Skip to content

Commit f4fe3a8

Browse files
committed
bump-pom-scijava: change property range
As the pom-scijava pom.xml now contains multiple properties ranges, it is not enough to search and replace within the properties tag. A special start/end anchor was added to the pom.xml to define the non-profiled properties section, so this is used instead.
1 parent 9e7c3dc commit f4fe3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bump-pom-scijava.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ else
208208
p="$(sed_quote "$property")"
209209
v="$(sed_quote "$value")"
210210
sed \
211-
-e "/<properties>/,/<\/properties>/s/\(<$p>\)[^<]*\(<\/$p>\)/\1$v\2/" \
211+
-e "/<\!-- LIVE PROPERTIES START -->/,/<\!-- LIVE PROPERTIES END -->/s/\(<$p>\)[^<]*\(<\/$p>\)/\1$v\2/" \
212212
$pom > $pom.new &&
213213
if ! cmp $pom $pom.new
214214
then

0 commit comments

Comments
 (0)