• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Ant: Ear Task Preserve Folder Paths

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am attempting to use the ant ear task in order to create an EAR for my project. All of my libraries are in a folder called "lib" and I also have a simple JAR, WAR, and EJB. When I look at the EAR after I have ran my current ear ant task all the my libraries are put inside the root folder of that EAR. For example




So if this is extracted to a folder it will look exactly like:



When it should really look like:



Any ideas?

Thanks
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I build archive files in two steps - the first step is to gather all of the files for the archive into a single directory, using the directory structure that I want for the final archive. The second step is to use a simple jar task to build the archive. This approach comes in handy when working with an application server that allows to to deploy applications as either an archive file or as an exploded directory because then I I deploy either way.

But if you still want help in fixing your ear task, please post the task (don't forget the 'code' tags!).
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Include a zipfileset in your ear. The ant manual's war task documentation includes an example.

 
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic