@@ -0,0 +1,825 @@
+package com.boundary.metrics.vmware;%0A%0Aimport java.io.File;%0A%0Aimport com.boundary.metrics.vmware.poller.MORCatalog;%0Aimport com.boundary.metrics.vmware.poller.MORCatalogFactory;%0A%0Apublic class CatalogValidate %7B%0A%09%0A%09%0A%09CatalogValidate() %7B%0A%09%09%0A%09%7D%0A%09%0A%09public boolean validate(File catalogFile) %7B%0A%09%09boolean valid = true;%0A%09%09MORCatalog catalog = MORCatalogFactory.create(catalogFile);%0A%09%09%0A%09%09valid = catalog.isValid(false);%0A%09%09%0A%09%09return valid;%0A%09%7D%0A%09%0A%09public static void main(String %5B%5D args) %7B%0A%09%09%0A%09%09if (args.length != 1) %7B%0A%09%09%09System.err.println(%22usage: %22 + CatalogValidate.class.getCanonicalName() + %22 %3Cpath to catalog%3E%22);%0A%09%09%09System.exit(1);%0A%09%09%7D%0A%09%09CatalogValidate validator = new CatalogValidate();%0A%09%09boolean valid = validator.validate(new File(args%5B0%5D));%0A%09%09System.err.printf(%22catalog %25s is %25s%5Cn%22,args%5B0%5D, valid ? %22valid%22 : %22not valid%22);%0A%09%7D%0A%0A%7D%0A

Add program to validate catalog