RE: SNAPSHOT timestamp ?

2008-01-29 Thread nicklist
Take a look at the buildnumber plugin[1]. However, this will not be the 
timestamp it will have in your remote repository. Just the timestamp (or 
revision) of the moment you build.

Hth,

Nick Stolwijk

[1] http://mojo.codehaus.org/buildnumber-maven-plugin/


-Original Message-
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:04 AM
To: users@maven.apache.org
Subject:  SNAPSHOT timestamp ?
 
Hi All,

I am trying to write the SNAPSHOT version number (with timestamp) to the 
manifest.mf file of a WebApp.

I can successfully use the maven-war-plugin to add the version - however 
this simply adds 1.0.0-SNAPSHOT to the manifest.

Whast i would like to achieve is adding the timestamped snapshot version 
number : 1.0.0-20080125.120545-3

Is this possible ?

Is there any way i can retrieve this timestamped version by any other 
means, i can then figure out how to get it into the manifest.

Many Thanks

Jon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: SNAPSHOT timestamp ?

2008-01-29 Thread Jon SlinnHawkins

Thanks Nick,

Ideally i need to be able to get hold of the version number that will be 
used, and deployed to the repository otherwise we cannot trace a build 
number to a snapshot version in the repo.


Thanks

Jon

[EMAIL PROTECTED] wrote:

Take a look at the buildnumber plugin[1]. However, this will not be the 
timestamp it will have in your remote repository. Just the timestamp (or 
revision) of the moment you build.

Hth,

Nick Stolwijk

[1] http://mojo.codehaus.org/buildnumber-maven-plugin/


-Original Message-
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:04 AM
To: users@maven.apache.org
Subject:  SNAPSHOT timestamp ?
 
Hi All,


I am trying to write the SNAPSHOT version number (with timestamp) to the 
manifest.mf file of a WebApp.


I can successfully use the maven-war-plugin to add the version - however 
this simply adds 1.0.0-SNAPSHOT to the manifest.


Whast i would like to achieve is adding the timestamped snapshot version 
number : 1.0.0-20080125.120545-3


Is this possible ?

Is there any way i can retrieve this timestamped version by any other 
means, i can then figure out how to get it into the manifest.


Many Thanks

Jon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: SNAPSHOT timestamp ?

2008-01-29 Thread nicklist
A copy paste of my last mail, which was accidentally replied to th wrong 
message.

I don't think you can get the timestamp generated in the deploy phase before 
the package phase, in which the artifact is created. I suggest take a look at 
the revision part of the buildnumber plugin. At least, you will be able to see 
from which revision your build was build.

Hth,

Nick Stolwijk 


-Original Message-
From: news on behalf of Jon SlinnHawkins
Sent: Tue 1/29/2008 11:15 AM
To: users@maven.apache.org
Subject:  Re: SNAPSHOT timestamp ?
 
Thanks Nick,

Ideally i need to be able to get hold of the version number that will be 
used, and deployed to the repository otherwise we cannot trace a build 
number to a snapshot version in the repo.

Thanks

Jon

[EMAIL PROTECTED] wrote:
 Take a look at the buildnumber plugin[1]. However, this will not be the 
 timestamp it will have in your remote repository. Just the timestamp (or 
 revision) of the moment you build.
 
 Hth,
 
 Nick Stolwijk
 
 [1] http://mojo.codehaus.org/buildnumber-maven-plugin/
 
 
 -Original Message-
 From: news on behalf of Jon SlinnHawkins
 Sent: Tue 1/29/2008 11:04 AM
 To: users@maven.apache.org
 Subject:  SNAPSHOT timestamp ?
  
 Hi All,
 
 I am trying to write the SNAPSHOT version number (with timestamp) to the 
 manifest.mf file of a WebApp.
 
 I can successfully use the maven-war-plugin to add the version - however 
 this simply adds 1.0.0-SNAPSHOT to the manifest.
 
 Whast i would like to achieve is adding the timestamped snapshot version 
 number : 1.0.0-20080125.120545-3
 
 Is this possible ?
 
 Is there any way i can retrieve this timestamped version by any other 
 means, i can then figure out how to get it into the manifest.
 
 Many Thanks
 
 Jon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]