MASS The Nitty Gritty FAQ
I have the bad habit of length of lines for amount of lines. This, in some cases, can result in one long line doing the same thing as five shorter lines. If you are trying to manipulate the plugin to do something and you can't 'decode' the code, I'd be more than happy to clarify something.
Inside the FileInfo.java file, a very long integer array contains the compiled code to do a version check. The array is loaded into a FileInfo.dll file while MASS runs and then the file names are passed to it. The DLL file returns the company name and file version as a string (if one exists). Using Win32 API in Java is made possible via JNI. Note this does mean the version-checking will not work properly if MASS is run on a non-Windows platform.
--jcox
© 2008 Novell, Inc. All Rights Reserved.