'Split a source jar into two or more jars in the given dest_dir.
Args:
jar_path: string that is the path to jar to be split. The contents of this
jar will be copied into the output jars, but the jar itself will not be
affected.
dest_dir: directory into which to put the jars that result from splitting
the input jar.
Raises:
IOError: if the jar cannot be split.'

def _SplitJar(self, jar_path, dest_dir):

    exclude_suffixes = (set(self.options.jar_splitting_exclude_suffixes.split(',')) - set(['']))
    include = (lambda name: (not any((name.endswith(s) for s in exclude_suffixes))))
    jarfile.SplitJar(jar_path, dest_dir, self._MAX_SIZE, include)
