File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant Dummy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant Dummy" Watch "Ant Dummy" New topic

Ant Dummy

Marky Mark Mark

Joined: Aug 29, 2012
Posts: 1
So I'm currently doing this below.
But instead of shoving all the jars at the root. I want one special jar libs.jar to go into a lib\ directory.
How do I change this?

<ear earfile="${bin.dir}/hello.ear" appxml="${powerear.descriptors}/application.xml">
<fileset dir="${bin.dir}" includes="*.jar,*.war" />
Peter Johnson

Joined: May 14, 2008
Posts: 5852

You have to first build a JAR with the contents you want and then you can place the JAR into the lib directory in the EAR.

Look at the "Merging archives" section of the Jar task documentation:

By the way, please change the topic for you post to better describe the issue you are asking about. Makes it easier for other to browse the forum looking for solutions to their problems.

JBoss In Action
I agree. Here's the link:
subject: Ant Dummy
It's not a secret anymore!