public static void processFile ( String input , String mappingPath , String outputFile , boolean doPrune , Log log ) throws IOException { Set < String > usedClassNames = new HashSet <> ( ) ; input = replaceClassNames ( input , mappingPath , usedClassNames , log ) ; log . debug ( usedClassNames . size ( ) + " used css classes in the mapping file" ) ; log . debug ( "used css classes : " + usedClassNames ) ; CssRewriter cssRewriter = new CssRewriter ( usedClassNames , doPrune , log ) ; input = cssRewriter . process ( input ) ; input += "\r\n// generated by HexaCss maven plugin, see http://www.lteconsulting.fr/hexacss" ; writeFile ( outputFile , input , log ) ; }
Process an input file