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 Advance.
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 Advance.
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>