All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.weaverplatform.importer.xmi.Main Maven / Gradle / Ivy

package com.weaverplatform.importer.xmi;

import java.io.IOException;

public class Main {

  /**
   * Run standalone
   * @param args
   * args[0] = weaver connection uri i.e. http://weaver:port
   * args[1] = filePath (see also: constructor @param filePath)
   * args[2] = name of model of weaver workbench
   */
  public static void main(String[] args) throws IOException {
    String weaverUrl, filePath, datasetId;
    
    if (args.length == 0){
      weaverUrl = "http://docker:9487";
      filePath  = "/Users/mohamad/Desktop/InformatieBackboneModel.xml";
      datasetId = "dataset0";  
    }
    else {
      weaverUrl = args[0];
      filePath  = args[1];
      datasetId = args[2];
    }
    
    ImportXmi importXmi = new ImportXmi(weaverUrl, datasetId);
    importXmi.readFromFile(filePath);
    importXmi.run();
    System.out.println("Finished");
    System.exit(0);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy