code: void generateAntXml(Definition def, String outputDir)
     {
        try
        {
           FileWriter antfw = Utils.createFile("build.xml", outputDir);
           BuildXmlGen bxGen = new BuildXmlGen();
           bxGen.generate(def, antfw);
           antfw.close();
        }
        catch (IOException ioe)
        {
           ioe.printStackTrace();
        }
     }
docs: generate ant build.xml
  
  @param def       Definition
  @param outputDir output directory