out.println("- - - - - List of machine generated PropertyGroups - - - - -");
println(out,"- - - - - List of machine generated PropertyGroups - - - - -");
    private void writeIndex() throws Exception {      String outname = "Properties.index";      if (cleanp) {        (new File(outname)).delete();        return ;      }      noteFile(outname);      debug("Writing Properties Index to \""+outname+"\"");      FileOutputStream fos = new FileOutputStream(new File(getTargetDir(),outname));      OutputStreamWriter osw = new OutputStreamWriter(fos);      PrintWriter out = new PrintWriter(osw);      out.println("- - - - - List of machine generated PropertyGroups - - - - -");            HashMap permuted = new HashMap();      List l =new ArrayList(p.table.keySet());      Collections.sort(l);      for (Iterator i = l.iterator(); i.hasNext();) {        String context = (String) i.next();        out.println("* "+context);        String doc = p.get(context,"doc");        if (doc != null) {          out.println(doc);        }        Vector slotspecs = getAllSlotSpecs(context);        Enumeration se = slotspecs.elements();        while (se.hasMoreElements()) {          String slotspec = ((String)se.nextElement()).trim();          int s = slotspec.indexOf(" ");          String type = slotspec.substring(0, s);          String name = slotspec.substring(s+1);          ActiveSlot as = parseActiveSlot(slotspec);          if (as != null) {            name = as.name;          }          out.print("    "+type+" "+toClassName(name)+";");          String slotdoc = (String)p.get(context, name+".doc");          if (slotdoc != null) out.print("\t//"+slotdoc);          out.println();          List pent = (List) permuted.get(name);          if (pent == null) {            pent = new ArrayList();            permuted.put(name, pent);          }           pent.add(context);        }      }      out.println("- - - - - Permuted index of PropertyGroupSlots - - - - -");      List k = new ArrayList(permuted.keySet());      Collections.sort(k);      for (Iterator i = k.iterator(); i.hasNext();) {        String name = (String) i.next();        out.println("* "+toClassName(name));        List cs = (List) permuted.get(name);        for (Iterator j = cs.iterator(); j.hasNext();) {          String context = (String) j.next();          out.println("    "+context);        }      }      out.close();    }