« Return to Thread: Parse out pure version number

Re: Parse out pure version number

by Dan Tran :: Rate this Message:

Reply to Author | View in Thread

this may help.
http://mojo.codehaus.org/build-helper-maven-plugin/parse-version-mojo.html

-D

On Thu, Jul 2, 2009 at 1:00 PM, Josh McFarlane<josh.mcfarlane@...> wrote:

> I have a command that I'm currently running via the exec plugin where I need
> to pass in the version number. This works fine if my version number is
> something like "1.0.0" but if I'm working from a snapshot, I need it to only
> return the actual version (1.0.0) instead of "1.0.0-SNAPSHOT". Is there a
> special property to get the resolved version, or do I need to manually add
> something to my exec script to parse out -SNAPSHOT?
>
> --
> Thanks,
> Josh McFarlane
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Parse out pure version number