Siba/src/org/dclermonte/siba/Siba.java

48 lines
1.3 KiB
Java
Raw Normal View History

2016-04-19 22:34:25 +02:00
/*
2016-04-26 23:02:26 +02:00
* Copyright (C) 2016 Didier Clermonté <dclermonte@april.org>
2016-04-19 22:34:25 +02:00
* Copyright (C) 2016 Christian Pierre Momon <christian.momon@devinsy.fr>
*
* This file is part of Siba.
*
* Siba is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2016-03-29 23:25:18 +02:00
package org.dclermonte.siba;
2016-03-27 22:32:35 +02:00
2016-05-03 17:36:45 +02:00
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import org.apache.commons.compress.archivers.ArchiveException;
2016-05-02 22:28:35 +02:00
import org.dclermonte.siba.cli.SibaCLI;
2016-03-29 23:25:18 +02:00
import org.dclermonte.siba.gui.SibaGUI;
2016-03-27 22:32:35 +02:00
public class Siba
{
2016-05-03 17:36:45 +02:00
public static void main(final String[] args) throws ArchiveException, IOException, NoSuchAlgorithmException
2016-03-27 22:32:35 +02:00
{
2016-05-02 22:28:35 +02:00
2016-04-19 22:34:25 +02:00
if (args.length == 0)
{
2016-05-02 22:28:35 +02:00
2016-05-08 22:43:19 +02:00
SibaGUI.run(args);
2016-04-19 22:34:25 +02:00
2016-03-27 22:32:35 +02:00
}
2016-05-02 22:28:35 +02:00
else
{
2016-05-08 22:43:19 +02:00
SibaCLI.run(args);
2016-05-02 22:28:35 +02:00
}
2016-03-27 22:32:35 +02:00
}
}