开发者

Copy policy.xml to meta-inf of ear file while creating ear file

开发者 https://www.devze.com 2023-01-06 01:24 出处:网络
can anyone let me know how to copy policy.xml and some xml file to META-INF of the EAR file while creating EAR file using ANT script.

can anyone let me know how to copy policy.xml and some xml file to META-INF of the EAR file while creating EAR file using ANT script.

sample

Thanks in Advanc开发者_如何学运维e.


From the task description they mention...

The nested metainf element specifies a FileSet. All files included in this fileset will end up in the META-INF directory of the ear file. If this fileset includes a file named MANIFEST.MF, the file is ignored and you will get a warning.

Example:

<ear destfile="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml">
  <metainf dir="${xml.dir}" includes="*.xsd,*.xml"/>
</ear>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号