com.enrsx.wfs.snow.main.Main.java Source code

Java tutorial

Introduction

Here is the source code for com.enrsx.wfs.snow.main.Main.java

Source

/*
 * Copyright 2017 ENRSX.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.enrsx.wfs.snow.main;

import com.enrsx.wfs.snow.calculate.Calculate;
import com.enrsx.wfs.utils.LogSetup;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *
 * @author ncarll
 */
public class Main {

    /**
     * Main Entry point for the SNOW Lake Effect Snow App
     *
     * @param args cmdline arguments
     */
    public static void main(String[] args) {

        String propertiesPath = "./resources/admin.properties";
        String logDir = "./log";
        int logMaxSize = 250000;

        LogSetup.ConfigureLog(propertiesPath, logDir, logMaxSize);

        Log log = LogFactory.getLog(Main.class);

        Calculate calculate = new Calculate();
        double outVar = calculate.getExtent();

        System.out.println(outVar);
    }

}