2012-11-27 80 views

回答

3

對於WebLogic,應用程序版本位於清單文件中的Weblogic-Application-Version屬性中。

<manifest file="${dist.dir}/MANIFEST.MF"> 
     <attribute name="Created-By" value="${user.name}" /> 
     <attribute name="Created-On" value="${build.timestamp}" /> 
     <attribute name="Ant-Version" value="${ant.version}" /> 
     <attribute name="Java-Version" value="${ant.java.version}" /> 
     <attribute name="Weblogic-Application-Version" value="${project.version}" /> 
    </manifest> 
2

我也增加了清單文件,並把

Manifest-Version: 1.0 
Class-Path: 
Created-By: Ronald 
Weblogic-Application-Version: v1 

中的src/META-INF/MANIFEST.MF創建清單文件,並放置在該文件的內容。您可以通過更改pro v1,v2等來更改版本。

您可以查看以下鏈接以查看更多詳細信息。

http://andrejusb.blogspot.com/2011/12/how-to-set-ear-version-for-adf.html

相關問題