Which Class unpacks JAR files?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, December 29, 2006 03:53 PM

I'm trying to use the ANT API to explode a .jar file. I've looked all over the source and can't seem to figure out exactly which class is used to accomplish this.


I found Untar and figured out how to use that, but I can't get it to work with .jar files.

Thanks in advance,
Brian Clark

Re: Which Class unpacks JAR files?

Posted By:   Robert_Lybarger  
Posted On:   Friday, December 29, 2006 07:31 PM

The mapping seems to be: jar = org.apache.tools.ant.taskdefs.Jar and unjar = org.apache.tools.ant.taskdefs.Expand

For that matter, a "jar" file is, generally speaking, just a zip file -- so you can use zip/unzip. (A UNIX-oriented tar file, however, is a different beast.) Moreover, openoffice files (*.odt for example) are also just zip files. All of these can be opened directly via, for example, WinZip.

About | Sitemap | Contact