Hi all, Do you know any way to auto-increment the $project.build.label property ?
Nico. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Monday, December 06, 2004 2:34 PM Subject: RE: Best practise: embedding pom.currentVersion into source code > Hi, > > > This works for all situations although we mainly use it to include build > > information on our demo web apps. > > > > Create a properties file e.g. build.properties where any build variable > > properties can be accessed by the java/jstl etc. Have your maven.xml build > > update this file using the ant <propertyfile> task. e.g. > > > > <propertyfile file="${project.build.properties}" comment="Updated by > > MAVEN build"> > > <entry key="build.number" value="${project.build.label}"/> > > <entry key="build.date" type="date" value="now" pattern="dd/MM/yyyy > > HH:mm"/> > > <entry key="version" value="${pom.currentVersion}"/> > > </propertyfile> > > This does exactly what we needed - thanks! > > Regards, > Graham > -- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]