Compress and Decompress Java JAR File with Apache Compress

You may also like...

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Elliot Hills Recent comment authors
  Subscribe  
newest oldest
Notify of
Elliot Hills
Guest
Elliot Hills

I tried it and found that there is extra ‘./’ in the root directory after compression, so I added ‘file.getParentFile().getName().equals(“rootDirName”)’ in method addToArchiveCompression