Extracting specified files from a jar
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Friday, October 25, 2002 02:01 AM

Hello, I'm wondering if there is any way to extract only specified files (using patterns) from a jar file with ant, in a OS-independent way (avoid using exec -task to call "bin/jar, jar.exe etc.")

unjar/unzip etc. extracts _all_ files, which is not what I need. unjar should really have accepted filepatterns on which files to extract IMHO.

Is there any posibility to call sun.tools.jar.Main with arguments via a java-task to do this? How?

Re: Extracting specified files from a jar

Posted By:   Eugene_Kuleshov  
Posted On:   Sunday, October 27, 2002 03:24 PM

There is a patternset element in a unzip/unjar task where you can specify your patterns.
About | Sitemap | Contact