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

edu.uiuc.ncsa.myproxy.oa4mp.server.CLIApprover Maven / Gradle / Ivy

There is a newer version: 4.3
Show newest version
package edu.uiuc.ncsa.myproxy.oa4mp.server;

import edu.uiuc.ncsa.myproxy.oa4mp.loader.OA4MPConfigurationLoader;
import edu.uiuc.ncsa.myproxy.oa4mp.server.util.AbstractCLIApprover;
import edu.uiuc.ncsa.security.core.util.ConfigurationLoader;

import java.io.File;

/**
 * 

Created by Jeff Gaynor
* on 3/27/12 at 3:45 PM */ public class CLIApprover extends AbstractCLIApprover { @Override public ConfigurationLoader getLoader() { return new OA4MPConfigurationLoader(getConfigurationNode()); } public static void main(String[] args) { AbstractCLIApprover approver = new CLIApprover(); try { System.out.println("logging to file " + new File(approver.getLogfileName()).getAbsolutePath()); approver.run(args); } catch (Throwable e) { // Since this will probably be called only by a bash script, catch all errors and exceptions // then return a non-zero exit code e.printStackTrace(); System.exit(1); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy