code: public static void main(String[] args)
      {
          if ((args == null) || (args.length < 1))
              System.exit(0);
          String strDirIn = args[0];
          String strDirOut = null;
          if (args.length > 1)
              strDirOut = args[1];
          else
              strDirOut = strDirIn;
          String strConvert = null;
          if (args.length > 2)
              strConvert = args[2];
          Task taskParent = null;   // Fix this!
          Map<String, Object> properties = new HashMap<String, Object>();
          properties.put(ConvertCode.DEST_DIR, strDirOut);
          properties.put(ConvertCode.SOURCE_DIR, strDirIn);
          ConvertCode convert = new ConvertCode(taskParent, null, properties);
          convert.setScanListener(new XMLScanListener(convert, strConvert));
          convert.run();
      }
docs: Main Method.