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>
精彩评论