/** * Compares the two given lists of archives. * * @param oldArchives the old versions of the archives * @param newArchives the new versions of the archives * @return a list which contains one instance of {@link japicmp.model.JApiClass} for each class found in one of the archives * @throws JApiCmpException if the comparison fails */ public List<JApiClass> compare(List<JApiCmpArchive> oldArchives, List<JApiCmpArchive> newArchives) { return createAndCompareClassLists(toFileList(oldArchives), toFileList(newArchives)); }
options.getNewArchives().addAll(createFileList(checkNonNull(newArchive, "Required option -n is missing."))); } else if ("-o".equals(arg) || "--old".equals(arg)) { String oldArchive = getOptionWithArgument("-o, --old", sae); options.getOldArchives().addAll(createFileList(checkNonNull(oldArchive, "Required option -o is missing."))); } else if ("-m".equals(arg) || "--only-modified".equals(arg)) { options.setOutputOnlyModifications(true);
options.getNewArchives().addAll(createFileList(checkNonNull(newArchive, "Required option -n is missing."))); } else if ("-o".equals(arg) || "--old".equals(arg)) { String oldArchive = getOptionWithArgument("-o, --old", sae); options.getOldArchives().addAll(createFileList(checkNonNull(oldArchive, "Required option -o is missing."))); } else if ("-m".equals(arg) || "--only-modified".equals(arg)) { options.setOutputOnlyModifications(true);
private Options createOptionsFromAntAttrs() { Options options = Options.newDefault(); options.getOldArchives().addAll(createFileList(this.oldJar)); options.getNewArchives().addAll(createFileList(this.newJar)); options.setXmlOutputFile(Optional.fromNullable(xmlOutputFile)); options.setHtmlOutputFile(Optional.fromNullable(htmlOutputFile));
/** * Compares the two given lists of archives. * * @param oldArchives the old versions of the archives * @param newArchives the new versions of the archives * @return a list which contains one instance of {@link japicmp.model.JApiClass} for each class found in one of the archives * @throws JApiCmpException if the comparison fails */ public List<JApiClass> compare(List<JApiCmpArchive> oldArchives, List<JApiCmpArchive> newArchives) { return createAndCompareClassLists(toFileList(oldArchives), toFileList(newArchives)); }