I bought a bag of toffee for us to enjoy as soon as the kids had gone to bed yesterday, but when I opened the kitchen closet the bag was opened. Mouse?
rblog
Bambi on ice
Two days ago, the first snowfall here in Oslo. The garbage truck having major trouble trying to drive downhill next to us. Midway he crashed into the fence, then he turned around and tried to go reverse dowhnill, crashing into the fence by the yellow house as well. At last he managed to slide down without causing major damage.
Jython – Unpack the manifest-file from a jar on the Windows platfom
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()



