de.unirostock.sems.bives.Main Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BiVeS Show documentation
Show all versions of BiVeS Show documentation
BiVeS - BioModel Version Control System
This package provides access to the BiVeS framework
/**
*
*/
package de.unirostock.sems.bives;
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.jdom2.Document;
import org.jdom2.Element;
import org.json.simple.JSONObject;
import de.binfalse.bflog.LOGGER;
import de.unirostock.sems.xmlutils.tools.XmlTools;
//TODO: detect document type
//TODO: graph producer
/**
* @author Martin Scharm
*
*/
public class Main
{
/** Should we exit?. */
public static boolean exit = true;
/**
* Usage.
*
* @param msg the error/info msg
*/
public void usage (String msg)
{
if (msg != null && msg.length () > 0)
{
System.err.println (msg);
System.out.println ();
}
HelpFormatter formatter = new HelpFormatter ();
formatter.setOptionComparator (new Comparator