I have the following folder structure:
project.ear
lib folder
ProjectEJBClient.jar
META-INF folder
projectEJB.jar
My build.xml contains the following lines to create EAR package
The above code can't create an EAR package with lib folder which includes the ProjectEJBClient.jar file
I want to create a lib folder and copy ProjectEJBClient.jar into that lib folder.
After this process I want to make an EAR project with this lib folder.
I don't know how to create lib folder and copy ProjectEJBClient.jar into that folder and include this folder into project.ear.
解决方案
The prefix="lib" will make sure, that the jar will be under /lib in your ear.