The only neat solution I found for this was to JAR my tapestry app into the WAR 
lib thus:
<archiveClasses>true</archiveClasses>

  ----- Original Message ----- 
  From: John 
  To: [email protected] 
  Sent: Wednesday, April 24, 2013 8:44 AM
  Subject: trying to set app version using manifest.mf


  Hi,

  I have been trying to use the following code in QaModule to set the 
application version using the same as the maven version. It doesn't seem to 
work, the manifest is under /META-INF. I'm using Jetty 6.1.16 both with the WAR 
and unpacked as a directory, same result, null.
  String version = QaModule.class.getPackage().getImplementationVersion();

  if (version != null) {

  configuration.add(SymbolConstants.APPLICATION_VERSION, version+ "(QA)");

  }

  I thought I had this working in earlier versions of the code. Anyone else had 
any success setting app version out of a manifest like above?

  John

Reply via email to