Decided to create a script based on Jython v 2.1 (WebSphere comes with that version) that finds all third party jar-files packed in a EAR-file. When found I also needed to read the MANIFEST.MF-file to figure out the version of the jar. To accomplish this I needed to execute jar.exe to be able to extract the manifest file, when that is done I can read the line implementation-version in the file.
First, import the needed Java-classes
import java.lang.ProcessBuilder as ProcessBuilder
import java.lang.Process as Process
Then in the script
pb = ProcessBuilder(['cmd.exe', '/C', 'd:/WebSphere/AppServer/java/bin/jar.exe','xvf', 'd:/path/lib', 'META-INF/MANIFEST.MF']);
pb.directory(io.File('d:/temp'))
process = pb.start()
process.waitFor()
process.destroy()