开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜