RE: Can I get a timestamp?

2007-02-07 Thread Crossley, Jim
Thanks Greg/Tony -- works like a charm.

Jim (not Kim) 

-Original Message-
From: Tony Ambrozie [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 10:14 PM
To: Maven Users List
Subject: Re: Can I get a timestamp?

I am using the buildnumber plugin successfully to tag my assembly
releases with a timestamp (for example, for assembly,  finalName${
project.artifactId}-${project.version}-r${buildNumber}/finalName),
just as Greg suggested.  Need to make sure to invoke the plugin create
goal, for example mvn buildnumber:create assembly:assembly.

Thanks'

On 2/6/07, Greg Jones [EMAIL PROTECTED] wrote:

 Kim,

 You can use the maven-buildnumber-plugin to get a timestamp, as
follows:

   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdmaven-buildnumber-plugin/artifactId
 version0.9.4/version
 configuration
   format{0,date,-MM-dd HH:mm:ss}/format
   items
 itemtimestamp/item
   /items
   doCheckfalse/doCheck
   doUpdatefalse/doUpdate
 /configuration
 executions
   execution
 phasevalidate/phase
 goals
   goalcreate/goal
 /goals
   /execution
 /executions
   /plugin

 The timestamp is put into the ${buildNumber} property. You can also 
 adjust the format of the timestamp to suit your requirements. Take a 
 look at 
 http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.htm
 lfor
 information on how it works.

 Regards,

 Greg J.

 -Original Message-
 From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 7 February 2007 11:03 AM
 To: 'Maven Users List'
 Subject: RE: Can I get a timestamp?

 The plug-in will allow you to use timestamp tagging to tag your 
 builds. I am sorry but I don't think you can access the timestamp 
 property directly in the pom itself. Why do you need to do that 
 anyway?

 Bashar

 -Original Message-
 From: Crossley, Jim [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 06, 2007 4:43 PM
 To: Maven Users List
 Subject: RE: Can I get a timestamp?

 Thanks for the quick reply, but what does that do, exactly?  In which 
 property does it make the timestamp available?  I tried ${timestamp} 
 after adding that snippet to my pom, but it was empty.  What am I
missing?

 Thanks,
 Jim

 -Original Message-
 From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 06, 2007 6:15 PM
 To: 'Maven Users List'
 Subject: RE: Can I get a timestamp?

 You can use maven scm plugin:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 configuration
 addTimestamptrue/addTimestamp
 tagbuild/tag
 timestampFormatMMddHHmm/timestampFormat
 /configuration
 /plugin

 -Original Message-
 From: Crossley, Jim [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 06, 2007 3:57 PM
 To: Maven Users List
 Subject: Can I get a timestamp?

 Do I really have to write an entire plugin just to make a timestamp 
 available as a maven property?  That's what Google is telling me, but 
 I wanted to make sure before I went to all that trouble.

 Thanks,
 Jim

 -
 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]

 -
 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]


 -
 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: Can I get a timestamp?

2007-02-07 Thread Greg Jones
 
 Jim (not Kim) 

Sorry about that. The keys are obviously too close together for my fingers
:-)

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 8 February 2007 1:53 AM
To: Maven Users List
Subject: RE: Can I get a timestamp?

Thanks Greg/Tony -- works like a charm.

Jim (not Kim) 

-Original Message-
From: Tony Ambrozie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 10:14 PM
To: Maven Users List
Subject: Re: Can I get a timestamp?

I am using the buildnumber plugin successfully to tag my assembly releases
with a timestamp (for example, for assembly,  finalName${
project.artifactId}-${project.version}-r${buildNumber}/finalName),
just as Greg suggested.  Need to make sure to invoke the plugin create goal,
for example mvn buildnumber:create assembly:assembly.

Thanks'

On 2/6/07, Greg Jones [EMAIL PROTECTED] wrote:

 Kim,

 You can use the maven-buildnumber-plugin to get a timestamp, as
follows:

   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdmaven-buildnumber-plugin/artifactId
 version0.9.4/version
 configuration
   format{0,date,-MM-dd HH:mm:ss}/format
   items
 itemtimestamp/item
   /items
   doCheckfalse/doCheck
   doUpdatefalse/doUpdate
 /configuration
 executions
   execution
 phasevalidate/phase
 goals
   goalcreate/goal
 /goals
   /execution
 /executions
   /plugin

 The timestamp is put into the ${buildNumber} property. You can also 
 adjust the format of the timestamp to suit your requirements. Take a 
 look at 
 http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.htm
 lfor
 information on how it works.

 Regards,

 Greg J.

 -Original Message-
 From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 7 February 2007 11:03 AM
 To: 'Maven Users List'
 Subject: RE: Can I get a timestamp?

 The plug-in will allow you to use timestamp tagging to tag your 
 builds. I am sorry but I don't think you can access the timestamp 
 property directly in the pom itself. Why do you need to do that 
 anyway?

 Bashar

 -Original Message-
 From: Crossley, Jim [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 06, 2007 4:43 PM
 To: Maven Users List
 Subject: RE: Can I get a timestamp?

 Thanks for the quick reply, but what does that do, exactly?  In which 
 property does it make the timestamp available?  I tried ${timestamp} 
 after adding that snippet to my pom, but it was empty.  What am I
missing?

 Thanks,
 Jim

 -Original Message-
 From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 06, 2007 6:15 PM
 To: 'Maven Users List'
 Subject: RE: Can I get a timestamp?

 You can use maven scm plugin:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 configuration
 addTimestamptrue/addTimestamp
 tagbuild/tag
 timestampFormatMMddHHmm/timestampFormat
 /configuration
 /plugin

 -Original Message-
 From: Crossley, Jim [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 06, 2007 3:57 PM
 To: Maven Users List
 Subject: Can I get a timestamp?

 Do I really have to write an entire plugin just to make a timestamp 
 available as a maven property?  That's what Google is telling me, but 
 I wanted to make sure before I went to all that trouble.

 Thanks,
 Jim

 -
 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]

 -
 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]


 -
 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]

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



Can I get a timestamp?

2007-02-06 Thread Crossley, Jim
Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

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



RE: Can I get a timestamp?

2007-02-06 Thread Bashar Abdul Jawad
You can use maven scm plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
configuration
addTimestamptrue/addTimestamp
tagbuild/tag
timestampFormatMMddHHmm/timestampFormat
/configuration
/plugin

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

-
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: Can I get a timestamp?

2007-02-06 Thread Crossley, Jim
Thanks for the quick reply, but what does that do, exactly?  In which
property does it make the timestamp available?  I tried ${timestamp}
after adding that snippet to my pom, but it was empty.  What am I
missing?

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 6:15 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

You can use maven scm plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
configuration
addTimestamptrue/addTimestamp
tagbuild/tag
timestampFormatMMddHHmm/timestampFormat
/configuration
/plugin

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

-
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]

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



RE: Can I get a timestamp?

2007-02-06 Thread Bashar Abdul Jawad
The plug-in will allow you to use timestamp tagging to tag your builds. I am
sorry but I don't think you can access the timestamp property directly in
the pom itself. Why do you need to do that anyway?

Bashar

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 4:43 PM
To: Maven Users List
Subject: RE: Can I get a timestamp?

Thanks for the quick reply, but what does that do, exactly?  In which
property does it make the timestamp available?  I tried ${timestamp}
after adding that snippet to my pom, but it was empty.  What am I
missing?

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 6:15 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

You can use maven scm plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
configuration
addTimestamptrue/addTimestamp
tagbuild/tag
timestampFormatMMddHHmm/timestampFormat
/configuration
/plugin

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

-
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]

-
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: Can I get a timestamp?

2007-02-06 Thread Greg Jones
Kim,

You can use the maven-buildnumber-plugin to get a timestamp, as follows:

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdmaven-buildnumber-plugin/artifactId
version0.9.4/version
configuration
  format{0,date,-MM-dd HH:mm:ss}/format
  items
itemtimestamp/item
  /items
  doCheckfalse/doCheck
  doUpdatefalse/doUpdate
/configuration
executions
  execution
phasevalidate/phase
goals
  goalcreate/goal
/goals
  /execution
/executions
  /plugin 

The timestamp is put into the ${buildNumber} property. You can also adjust
the format of the timestamp to suit your requirements. Take a look at
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html for
information on how it works.

Regards,

Greg J.

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 7 February 2007 11:03 AM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

The plug-in will allow you to use timestamp tagging to tag your builds. I am
sorry but I don't think you can access the timestamp property directly in
the pom itself. Why do you need to do that anyway?

Bashar

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 4:43 PM
To: Maven Users List
Subject: RE: Can I get a timestamp?

Thanks for the quick reply, but what does that do, exactly?  In which
property does it make the timestamp available?  I tried ${timestamp} after
adding that snippet to my pom, but it was empty.  What am I missing?

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 6:15 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

You can use maven scm plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
configuration
addTimestamptrue/addTimestamp
tagbuild/tag
timestampFormatMMddHHmm/timestampFormat
/configuration
/plugin

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

-
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]

-
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]


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



RE: Can I get a timestamp?

2007-02-06 Thread Crossley, Jim
My company's policy is to use a timestamp as the release number for
RPM's.  As you may know, the RPM spec provides for both a version and a
release number.  The RPM mojo allows you to set a release number, but
there's no support for setting it to a timestamp, e.g.
release${timestamp}/release.

Do you think the SCM plugin's build-tagging support would somehow
integrate with the RPM plugin?

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 7:03 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

The plug-in will allow you to use timestamp tagging to tag your builds.
I am sorry but I don't think you can access the timestamp property
directly in the pom itself. Why do you need to do that anyway?

Bashar

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 4:43 PM
To: Maven Users List
Subject: RE: Can I get a timestamp?

Thanks for the quick reply, but what does that do, exactly?  In which
property does it make the timestamp available?  I tried ${timestamp}
after adding that snippet to my pom, but it was empty.  What am I
missing?

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 6:15 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

You can use maven scm plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
configuration
addTimestamptrue/addTimestamp
tagbuild/tag
timestampFormatMMddHHmm/timestampFormat
/configuration
/plugin

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

-
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]

-
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]

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



Re: Can I get a timestamp?

2007-02-06 Thread Tony Ambrozie

I am using the buildnumber plugin successfully to tag my assembly releases
with a timestamp (for example, for assembly,  finalName${
project.artifactId}-${project.version}-r${buildNumber}/finalName), just as
Greg suggested.  Need to make sure to invoke the plugin create goal, for
example mvn buildnumber:create assembly:assembly.

Thanks'

On 2/6/07, Greg Jones [EMAIL PROTECTED] wrote:


Kim,

You can use the maven-buildnumber-plugin to get a timestamp, as follows:

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdmaven-buildnumber-plugin/artifactId
version0.9.4/version
configuration
  format{0,date,-MM-dd HH:mm:ss}/format
  items
itemtimestamp/item
  /items
  doCheckfalse/doCheck
  doUpdatefalse/doUpdate
/configuration
executions
  execution
phasevalidate/phase
goals
  goalcreate/goal
/goals
  /execution
/executions
  /plugin

The timestamp is put into the ${buildNumber} property. You can also adjust
the format of the timestamp to suit your requirements. Take a look at
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.htmlfor
information on how it works.

Regards,

Greg J.

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 7 February 2007 11:03 AM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

The plug-in will allow you to use timestamp tagging to tag your builds. I
am
sorry but I don't think you can access the timestamp property directly in
the pom itself. Why do you need to do that anyway?

Bashar

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 4:43 PM
To: Maven Users List
Subject: RE: Can I get a timestamp?

Thanks for the quick reply, but what does that do, exactly?  In which
property does it make the timestamp available?  I tried ${timestamp} after
adding that snippet to my pom, but it was empty.  What am I missing?

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 6:15 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

You can use maven scm plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
configuration
addTimestamptrue/addTimestamp
tagbuild/tag
timestampFormatMMddHHmm/timestampFormat
/configuration
/plugin

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

-
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]

-
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]


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