geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Genender" <jgenen...@savoirtech.com>
Subject Re: m2: no versions in project.properties
Date Sat, 05 Nov 2005 15:46:44 GMT

This is awesome...thanks for sharing this...I can use this in a lot of
places ;-)


> Just pasting this here so i don't loose it.  Disregard if not
> interested.
>
> It takes the versions out of project.properties and puts them in
> project.xml
>
> #!/bin/bash
> for n in $(cat project.properties | grep '_version='); do
>     echo "artifactId: ${n/=*/}, version:  ${n/*=/}"
>     perl -i -pe "s/..${n/=*/}./${n/*=/}/" project.xml;
> done
>
> Something like it will help m2 conversion of the various projects.
>
> -David
>


Mime
View raw message