@@ -0,0 +1,1049 @@
+package mandelbrot.ocamljava_maven_plugin.util;%0A%0Aimport java.util.Collection;%0Aimport java.util.Map;%0Aimport java.util.Map.Entry;%0Aimport java.util.Set;%0A%0A%0Aimport com.google.common.base.Function;%0Aimport com.google.common.base.Preconditions;%0Aimport com.google.common.collect.Collections2;%0Aimport com.google.common.collect.ImmutableMultimap;%0Aimport com.google.common.collect.ImmutableSet;%0Aimport com.google.common.collect.Multimap;%0Aimport com.google.common.collect.*;%0Aimport com.google.common.base.*;%0A%0Apublic class MapTransforms %7B%0A%0A%09public static %3CT%3E Map%3CT, T%3E reverseIndex(%0A%09%09%09final Multimap%3CT, T%3E filesByPackageName) %7B%0A%09%09final Map%3CT, Collection%3CT%3E%3E asMap = filesByPackageName%0A%09%09%09%09.asMap();%0A%09%09final Set%3CEntry%3CT, Collection%3CT%3E%3E%3E entrySet = asMap%0A%09%09%09%09.entrySet();%0A%09%09final ImmutableMap.Builder%3CT, T%3E immutableMapBuilder = ImmutableMap%0A%09%09%09%09.builder();%0A%0A%09%09for (final Entry%3CT, Collection%3CT%3E%3E entry : entrySet) %7B%0A%09%09%09for (final T value : entry.getValue()) %7B%0A%09%09%09%09immutableMapBuilder.put(value, entry.getKey());%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return immutableMapBuilder.build();%0A%09%7D%0A%7D%0A

support for new file@packageName command line arguments to ocamlwrap