Package com.gitblit.models

Examples of com.gitblit.models.PluginRegistry


    if (files == null || files.length == 0) {
      return list;
    }

    for (File file : files) {
      PluginRegistry registry = null;
      try {
        String json = FileUtils.readContent(file, "\n");
        registry = JsonUtils.fromJsonString(json, PluginRegistry.class);
        registry.setup();
      } catch (Exception e) {
        logger.error("Failed to deserialize " + file, e);
      }
      if (registry != null) {
        list.add(registry);
View Full Code Here


    if (files == null || files.length == 0) {
      return list;
    }

    for (File file : files) {
      PluginRegistry registry = null;
      try {
        String json = FileUtils.readContent(file, "\n");
        registry = JsonUtils.fromJsonString(json, PluginRegistry.class);
        registry.setup();
      } catch (Exception e) {
        logger.error("Failed to deserialize " + file, e);
      }
      if (registry != null) {
        list.add(registry);
View Full Code Here

TOP

Related Classes of com.gitblit.models.PluginRegistry

Copyright © 2018 www.massapicom. 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.