I'm building an EAR with ant which needs to include the lib folder (including jars) from my EAR project. I've tried this but although a lib folder is created in the ear file no jars are included. Only the war files are copied into the ear.
<ear destfile="${ear.file}" appxml="META-INF/application.xml">
<dirset dir=".">
<include name="lib" />
</dirset>
<fileset dir="${temp.dir}">
<include name="*.war" />
</fileset>
</ear>