• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application Build ID what is it?

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • 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?
 
Deepak Pant
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>
 
Jessica Paul
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