• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Application Build ID what is it?

 
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I install my web application under WebSphere I can see as Application Build ID is Unknown. how can I specify it for my war packaged application?
 
Ranch Hand
Posts: 446
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The value for "Application Build ID" is picked up from the "Implementation-Version" attribute of MANIFEST.MF file of your EAR file.

You can add following code to your ant script to automatically increment and set this value in the MANIFEST file.

<buildnumber/>
<property name="application.id" value="${DSTAMP}_${TSTAMP}_v${build.number}"/>

<manifest file="${src}/BeenThereEAR/META-INF/MANIFEST.MF">
<attribute name="Built-By" value="YourName"/>
<attribute name="Specification-Title" value="BeenThere"/>
<attribute name="Specification-Version" value="${build.number}"/>
<attribute name="Specification-Vendor" value="XXXXXX"/>
<attribute name="Implementation-Title" value="YourAppEAR"/>
<attribute name="Implementation-Version" value="${application.id}"/>
<attribute name="Implementation-Vendor" value="YYYYYY"/>
</manifest>
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about the WAR file ? Its not picking up from the WAR file.

<target name="create.war" depends="compile">
<echo>=== PACKAGE WAR ===</echo>
<buildnumber file="build.num"/>
<delete file="WebContent/META-INF/MANIFEST.MF"/>
<property name="version.num" value="1.0"/>
<buildnumber file="build.num"/>
<manifest file="WebContent/META-INF/MANIFEST.MF">
<attribute name="Main-Class" value="MyClass"/>
<attribute name="Implementation-Version" value="${version.num}.${build.number}"/>
<attribute name="Implementation-Build" value="${version.num}.${build.number}"/>
<attribute name="addClasspath" value="true" />
</manifest>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!