code: protected void execute(final File input, final String cobolFileEncoding,
              final File target, final String targetNamespacePrefix,
              final String xsltFileName)
              throws XsdGenerationException {
  
          try {
              _log.info("Started translation from COBOL to XML Schema");
              _log.info("Taking COBOL from           : " + input);
              _log.info("COBOL encoding              : " + cobolFileEncoding == null ? "default"
                      : cobolFileEncoding);
              _log.info("Output XML Schema to        : " + target);
              _log.info("XML Schema namespace prefix : " + targetNamespacePrefix);
              _log.info("XSLT transform to apply     : " + xsltFileName);
              _log.info("Options in effect           : " + getConfig().toString());
  
              if (input.isFile()) {
                  if (FilenameUtils.getExtension(target.getPath()).length() == 0) {
                      FileUtils.forceMkdir(target);
                  }
                  translate(input, cobolFileEncoding, target,
                          targetNamespacePrefix, xsltFileName);
              } else {
                  FileUtils.forceMkdir(target);
                  for (File cobolFile : input.listFiles()) {
                      if (cobolFile.isFile()) {
                          translate(cobolFile, cobolFileEncoding, target,
                                  targetNamespacePrefix, xsltFileName);
                      }
                  }
              }
              _log.info("Finished translation");
          } catch (IOException e) {
              throw new XsdGenerationException(e);
          }
  
      }
docs: Translate a single file or all files from an input folder. Place results
  in the output folder.
  
  @param input the input COBOL file or folder
  @param cobolFileEncoding the COBOL file character encoding
  @param target the output folder or file where XML schema file must go
  @param targetNamespacePrefix the output XML schemas target namespace
  prefix
  @param xsltFileName an optional xslt to apply on the XML Schema
  @throws XsdGenerationException if XML schema cannot be generated