MrKappaChi
Programmer
In my perl script I'm attempting to extract a JAR manifest file. The Manifest.mf file is created whenever you create a jar file. I'm using the manifest to store Implementation-Version, and I want to access that in my perl script. My problem is that the Manifest.mf file is in a subdirectory META-INF (META-INF/MANIFEST.MF). I'm able to extract any files from the main directory, but am unable to extract any file from any subdirectory. My code looks like this:
@args = ("jar", "xf", "test.jar", "META-INF/MANIFEST.MF"
;
system(@args);
when I print the command out it looks like:
jar xf test.jar META-INF/MANIFEST.MF
and if I just paste that into the shell , it works fine, just not from within the perl script. I know it's not that particular subdirectory that won't work because I've tried it with several files in subdirectories and none work. Anybody know how it would be possible to extract files from within subdirectories of a jar file? Thank you in advance.
@args = ("jar", "xf", "test.jar", "META-INF/MANIFEST.MF"
system(@args);
when I print the command out it looks like:
jar xf test.jar META-INF/MANIFEST.MF
and if I just paste that into the shell , it works fine, just not from within the perl script. I know it's not that particular subdirectory that won't work because I've tried it with several files in subdirectories and none work. Anybody know how it would be possible to extract files from within subdirectories of a jar file? Thank you in advance.