4

Is it possible to add version number to WAR file specific to weblogic server ? To provide build files to client, they want us to get version number in WAR file. Is it possible or is there any standard approach for this ?

PN : Also I'm using jDeveloper as an IDE.

svarog
  • 9,477
  • 4
  • 61
  • 77
HarsH
  • 760
  • 3
  • 12
  • 27

3 Answers3

6

It is appropriate to add version information to a JAR/WAR manifest file. See here for more information.

Specification-Title: Java Utility Classes
Specification-Version: 1.2
Specification-Vendor: Example Tech, Inc.
Implementation-Title: java.util
Implementation-Version: build57
Implementation-Vendor: Example Tech, Inc.
martinez314
  • 12,162
  • 5
  • 36
  • 63
0

Other WebLogic components add a revision to the jar (war) file name, e.g.: xxx_warfile_rev1.0.war. So a "_rev1.0" (or appropriate version) naming is at least consistent with other WebLogic functions. Assuming you're only trying to version the entire .war as a single release, that's probably sufficient.

user1676075
  • 3,056
  • 1
  • 19
  • 26
0

I managed to version the WAR file for weblogic through Manifest.mf file. If facing the same issue you can have a look at below mentioned URL -

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/14-Redeployment--4465/redeploy.htm

HarsH
  • 760
  • 3
  • 12
  • 27