Example #1
0
  public void executeFromProperties(String propertiesFile) throws NullPointerException {
    this.propertiesFile = propertiesFile;
    PropertiesManager.register(propertiesFile);

    String sourcePath = PropertiesManager.getInstance().getPropertiesAsString("path.source");
    if (!sourcePath.endsWith(File.separator)) sourcePath = sourcePath + File.separator;
    String targetPath = PropertiesManager.getInstance().getPropertiesAsString("path.target");
    if (targetPath.endsWith(File.pathSeparator)) targetPath = targetPath + File.separator;
    String species = PropertiesManager.getInstance().getPropertiesAsString("species.path");
    String language = PropertiesManager.getInstance().getPropertiesAsString("language");

    s2k.execute(sourcePath, targetPath, species, language);
  }