On Thu, Nov 20, 2008 at 5:03 PM, Costin Caraivan <[EMAIL PROTECTED]> wrote:
>
> Hello.
>
> I'm trying to build a lot of Eclipse plugins with Maven. I've finished the
> hardest part (I hope :) ), and now I'm trying to version the builds. That
> is, I want the output of the build process to be a zip named something like
> this:
>
> com.whatever.me_2.2.2.YYYYMMDDHHmm.zip, where 2.2.2 is a relatively static
> version, but YYYYMMDDHHmm is obviously the timestamp of the build (and it's
> not static at all :) ).
>
> Thing is, I can't figure out how to do this. Any ideas? (Can I give Maven
> project.version numbers as command line parameters?)
>
> Later on I have to automate this with Continuum, so if anyone knows how to
> pass the timestamp from Continuum, be my guest :)
Continuum is not passing timestamp to projects during build but you may use
${continuum.project.nextBuild.number} - this will be a number.
Or, for timestamp, as Mick pointed out - buildnumber plugin.
Regards,
Tomek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]