« Return to Thread: Parse out pure version number

Parse out pure version number

by Josh McFarlane-2 :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: Parse out pure version number