This function parses a list of files and returns the list of Java packages which the files correspond.
USAGE:
@packages = GetPackages( @FileList );
@FileList should be a list of relative (as opposed to fully qualified) filenames.
RETURNS:
A list of packages.