Parse out pure version number

View: New views
3 Messages — Rating Filter:   Alert me  

Parse out pure version number

by Josh McFarlane-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Parse out pure version number

by Dan Tran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


Re: Parse out pure version number

by Josh McFarlane-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That's actually exactly what I was looking for! Thanks!

On Thu, Jul 2, 2009 at 3:26 PM, Dan Tran <dantran@...> wrote:

>
> 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@...
>



--
Thanks,
Josh McFarlane
http://www.joshmcfarlane.com

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