File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Application Build ID what is it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Application Build ID what is it?" Watch "Application Build ID what is it?" New topic
Author

Application Build ID what is it?

D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

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?


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 445
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

Joined: Sep 08, 2011
Posts: 1
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>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Application Build ID what is it?