Friday, March 20, 2009

Maven release plugin VS grep + sed

Релиз плагин, релиз плагин, блин!

Вот классная вещь!

grep -rl 2.0.6-SNAPSHOT . | grep -v '.svn' | xargs sed -i -e 's/2.0.6-SNAPSHOT/2.0.6/g'



UPD:
grep -rl 2.0.6-SNAPSHOT . --include=pom.xml | xargs sed -i -e 's/2.0.6-SNAPSHOT/2.0.6/g'
thx Andrew00x

1 comment:

Alexey Zavizionov said...

grep -rl \\-2.2.0-SNAPSHOT . --include=.project | xargs sed -i -e 's/-2.2.0-SNAPSHOT//g'