public void generateFiles ( File directory ) throws IOException { if ( packageName != null && ! packageName . trim ( ) . isEmpty ( ) ) { String packageDir = packageName . replace ( "." , File . separator ) ; if ( ! directory . getAbsolutePath ( ) . endsWith ( packageDir ) ) { directory = new File ( directory , packageDir ) ; } } directory . mkdirs ( ) ; HollowAPIClassJavaGenerator apiClassGenerator = new HollowAPIClassJavaGenerator ( packageName , apiClassname , dataset , parameterizeClassNames , config ) ; HollowAPIFactoryJavaGenerator apiFactoryGenerator = new HollowAPIFactoryJavaGenerator ( packageName , apiClassname , dataset , config ) ; HollowHashIndexGenerator hashIndexGenerator = new HollowHashIndexGenerator ( packageName , apiClassname , dataset , config ) ; generateFile ( directory , apiClassGenerator ) ; generateFile ( directory , apiFactoryGenerator ) ; generateFile ( directory , hashIndexGenerator ) ; generateFilesForHollowSchemas ( directory ) ; }
Generate files under the specified directory