File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Ant Dummy

Marky Mark Mark
Greenhorn

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" />
</ear>
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

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: http://ant.apache.org/manual/Tasks/jar.html

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: http://aspose.com/file-tools
 
subject: Ant Dummy