void generateAntIvyXml ( Definition def , String outputDir ) { try { FileWriter antfw = Utils . createFile ( "build.xml" , outputDir ) ; BuildIvyXmlGen bxGen = new BuildIvyXmlGen ( ) ; bxGen . generate ( def , antfw ) ; antfw . close ( ) ; FileWriter ivyfw = Utils . createFile ( "ivy.xml" , outputDir ) ; IvyXmlGen ixGen = new IvyXmlGen ( ) ; ixGen . generate ( def , ivyfw ) ; ivyfw . close ( ) ; FileWriter ivySettingsfw = Utils . createFile ( "ivy.settings.xml" , outputDir ) ; IvySettingsXmlGen isxGen = new IvySettingsXmlGen ( ) ; isxGen . generate ( def , ivySettingsfw ) ; ivySettingsfw . close ( ) ; } catch ( IOException ioe ) { ioe . printStackTrace ( ) ; } }
generate ant + ivy build . xml and ivy files