This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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>
 
On top of spaghetti all covered in cheese, there was this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!