public void emit ( Filer f , String pkg , File mf , String csn ) throws IOException { PrintWriter pw = f . createTextFile ( Filer . Location . CLASS_TREE , pkg , mf , csn ) ; pw . println ( "# Apache Beehive Controls client manifest (auto-generated, do not edit!)" ) ; Set props = _properties . keySet ( ) ; for ( Object p : props ) { String name = ( String ) p ; String value = _properties . getProperty ( name ) ; /* convert the name and value to a format excpected by the Properties.load() method */ name = escapeJava ( name ) ; if ( value != null ) value = escapeJava ( value ) ; pw . println ( name + "=" + value ) ; } pw . flush ( ) ; pw . close ( ) ; }
Emits the manifest via an apt Filer implementation