You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by David Blevins <da...@visi.com> on 2005/11/05 01:16:29 UTC

m2: no versions in project.properties

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

Re: m2: no versions in project.properties

Posted by Jeff Genender <jg...@savoirtech.com>.
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
>