Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to read directories from a deployed .EAR file?

Reply
Thread Tools

How to read directories from a deployed .EAR file?

 
 
Collin VanDyck
Guest
Posts: n/a
 
      03-31-2005
I've got an application deployed as a .EAR file, and part of the
startup process is to iterate through a number of updates that bring
old databases up to speed with the current codebase.

To date we've deployed the application as a flat, exploded file &
directory hierarchy, which allowed me to simply use a java.io.File to
locate the update directory and from there recurse through the
subdirectories and files to find all of the updates.

However, with this single .EAR I am having trouble trying to figure out
how to get access to the directory. I can access single, known files
in the archive using Class.getResourceAsStream(path) without any
problem.

What is the equivalent for reading packed directories? Is this even
possible, and if not, would I need to create a definitive list of these
files as part of the build process and then getResourceAsStream() for
the list that I created before, parse that, and then
getResourceAsStream() for each file in the list?

Also, I tried to search for this, but Google Groups kept telling me
that none of my search results were available.

thanks for any help!

Collin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Directories and Physical directories Paul M Fin MCAD 4 06-27-2008 07:50 PM
virtual directories/physical directories in IIS Paul F ASP .Net 4 06-25-2008 04:04 PM
Multiple bin-directories with virtual directories? =?Utf-8?B?TGFzc2UgTmlsc3Nvbg==?= ASP .Net 0 11-09-2004 05:49 PM
How to map Project directories to Production sub-directories Joel Finkel ASP .Net 0 09-12-2003 06:47 PM
Using virtual directories for common directories (scripts, images, styles, etc.) Jeffry van de Vuurst ASP .Net 2 07-30-2003 07:00 PM



Advertisments