Re: Parsing a file within a jar file

2007-07-01 Thread yitzle

On 6/27/07, Chas Owens [EMAIL PROTECTED] wrote:

On 6/27/07, Ken Foskey [EMAIL PROTECTED] wrote:
 On Wed, 2007-06-27 at 08:11 -0500, Daniel W. Hurn wrote:
  Does anyone have any suggestion on how to examine/parse a file within a
  jar file?

 jar is a java file and I think it is simply a zipped file.
snip

I can confirm that all three levels of Java archives (jar, war, and
ear) are just renamed zip files.  It looks like
Archive::Zip::MemberRead* can give you transparent (to Perl) access to
a file inside a zip file.


I'd just like to inject that I believe, while the .jar, .war (and
.ear? - never heard of that one) have the same format as .zip, they
have rules about what file(s)/directory structure must (or should?) be
obeyed. eg I think the .war required a WEB-INF folder with a .manifest
file

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Parsing a file within a jar file

2007-06-27 Thread Daniel W. Hurn
Does anyone have any suggestion on how to examine/parse a file within a 
jar file?
--
Dan



Re: Parsing a file within a jar file

2007-06-27 Thread Ken Foskey
On Wed, 2007-06-27 at 08:11 -0500, Daniel W. Hurn wrote:
 Does anyone have any suggestion on how to examine/parse a file within a 
 jar file?

jar is a java file and I think it is simply a zipped file.

-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Parsing a file within a jar file

2007-06-27 Thread Chas Owens

On 6/27/07, Ken Foskey [EMAIL PROTECTED] wrote:

On Wed, 2007-06-27 at 08:11 -0500, Daniel W. Hurn wrote:
 Does anyone have any suggestion on how to examine/parse a file within a
 jar file?

jar is a java file and I think it is simply a zipped file.

snip

I can confirm that all three levels of Java archives (jar, war, and
ear) are just renamed zip files.  It looks like
Archive::Zip::MemberRead* can give you transparent (to Perl) access to
a file inside a zip file.

* http://search.cpan.org/~adamk/Archive-Zip-1.20/lib/Archive/Zip/MemberRead.pm

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Parsing a file within a jar file

2007-06-27 Thread Laxminarayan G Kamath A
On Wed, 27 Jun 2007 08:11:12 -0500, Daniel W. Hurn
[EMAIL PROTECTED] wrote:

 Does anyone have any suggestion on how to examine/parse a file within
 a jar file?


If you are doing something with regard to java itself , then
there might even be some readymade modules already in CPAN.
I found a few results when I searched for jar in CPAN.

http://search.cpan.org/search?m=allq=jars=1
 

-- 
Cheers,
Laxminarayan G Kamath A
e-mail: [EMAIL PROTECTED]
Work URL: http://deeproot.in

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/