5

需要在 weblogic-application.xml 中定义我们产品的一个版本。可能吗?谢谢。

4

2 回答 2

4

对于 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>
于 2012-12-06T22:20:10.633 回答
3

我确实增加了清单文件并放置

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

在src/META-INF/MANIFEST.MF中创建manifest文件并放置在文件内容中。您可以通过更改 pro v1、v2 等来更改版本。

您可以查看以下链接以查看更多详细信息。

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

于 2015-02-23T15:53:52.830 回答