private static ImmutableMap < String , String > generateManifest ( List < String > soyNamespaces , Multimap < String , Integer > outputs ) { ImmutableMap . Builder < String , String > manifest = new ImmutableMap . Builder <> ( ) ; for ( String outputFilePath : outputs . keySet ( ) ) { for ( int inputFileIndex : outputs . get ( outputFilePath ) ) { String pythonPath = outputFilePath . replace ( ".py" , "" ) . replace ( ' ' , ' ' ) ; manifest . put ( soyNamespaces . get ( inputFileIndex ) , pythonPath ) ; } } return manifest . build ( ) ; }
Generate the manifest file by finding the output file paths and converting them into a Python import format .