Package org.stagemonitor

Source Code of org.stagemonitor.ConfigurationSourceExporter

package org.stagemonitor;

import org.apache.commons.io.FileUtils;
import org.stagemonitor.core.StagemonitorPlugin;
import org.stagemonitor.core.configuration.Configuration;
import org.stagemonitor.core.util.JsonUtils;

import java.io.File;
import java.io.IOException;

public class ConfigurationSourceExporter {

  public static void main(String[] args) throws IOException {
    final String json = JsonUtils.toJson(new Configuration(StagemonitorPlugin.class).getConfigurationOptionsByPlugin());
    FileUtils.writeStringToFile(new File(args[0]), json);
  }
}
TOP

Related Classes of org.stagemonitor.ConfigurationSourceExporter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.