/** * Export fields from specified contract. * * @param contract - contract to export. * @param fieldNames - list of field names to export. * @param fileName - name of file to export to. * @param format - format of file to export to. Can be xml or json. */ private static void exportFields(Contract contract, List<String> fieldNames, String fileName, String format) throws IOException { exportFields(contract, fieldNames, fileName, format, false); }
name = new FilenameTool(source).setExtension(format).addSuffixToBase("_fields").toString(); exportFields(contract, extractFields, name, format, options.has("pretty")); } else { if (name == null) {