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

de.unirostock.sems.bives.Main Maven / Gradle / Ivy

Go to download

BiVeS - BioModel Version Control System This package provides access to the BiVeS framework

There is a newer version: 1.13.7
Show newest version
/**
 * 
 */
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy