code: void generateIronjacamarXml(Definition def, String outputDir)
     {
        try
        {
           String resourceDir = outputDir + File.separatorChar + "src" + File.separatorChar +
                 "main" + File.separatorChar + "resources";
           writeIronjacamarXml(def, resourceDir);
  
           if (def.getBuild().equals("maven"))
           {
              String rarDir = outputDir + File.separatorChar + "src" + File.separatorChar +
                    "main" + File.separatorChar + "rar";
              writeIronjacamarXml(def, rarDir);
           }
        }
        catch (IOException ioe)
        {
           ioe.printStackTrace();
        }
     }
docs: generate ant ironjacamar.xml
  
  @param def       Definition
  @param outputDir output directory