Package metashare.upgrader.XMLTool

Examples of metashare.upgrader.XMLTool.MetashareSchemaVersion


      }
    } else {
      targetFolder.mkdirs();
    }
   
    MetashareSchemaVersion targetVersion = MetashareSchemaVersion.valueOf(System.getProperty("metashare.targetVersion", "v21"));
    String sourceVersionString = System.getProperty("metashare.sourceVersion");
    MetashareSchemaVersion sourceVersion = sourceVersionString != null ? MetashareSchemaVersion.valueOf(sourceVersionString) : null;
   
    for (File sourceFile : sourceFiles) {
      String filename = sourceFile.getName();
      File targetFile = new File(targetFolder, filename);
      System.out.print(filename + "... ");
      Document sourceDoc = XMLTool.parse(sourceFile);
      MetashareSchemaVersion from = sourceVersion;
      if (from == null) {
        from = XMLTool.guessSchemaVersion(sourceDoc);
        System.out.print("version seems to be "+from+"... ");
      }
     
View Full Code Here

TOP

Related Classes of metashare.upgrader.XMLTool.MetashareSchemaVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.