fe/src/main/java/org/apache/doris/plugin/PluginMgr.java
public void init() {
        File file = new File(Config.plugin_dir);
        if (file.exists() && !file.isDirectory()) {
            LOG.error("FE plugin dir {} is not a directory", Config.plugin_dir);
            System.exit(-1);
        }

        if (!file.exists()) {
            if (!file.mkdir()) {
                LOG.error("failed to create FE plugin dir {}", Config.plugin_dir);
                System.exit(-1);
            }
        }
    }
// create the plugin dir if missing
create the plugin dir if missing
create the plugin dir if missing
public void init() {
        File file = new File(Config.plugin_dir);
        if (file.exists() && !file.isDirectory()) {
            LOG.error("FE plugin dir {} is not a directory", Config.plugin_dir);
            System.exit(-1);
        }
        if (!file.exists()) {
            if (!file.mkdir()) {
                LOG.error("failed to create FE plugin dir {}", Config.plugin_dir);
                System.exit(-1);
            }
        }
    }
public void init ( ) { File file = new File ( Config . plugin_dir ) ; if ( file . exists ( ) && ! file . isDirectory ( ) ) { LOG . error ( "FE plugin dir {} is not a directory" , Config . plugin_dir ) ; System . exit ( - 1 ) ; } if ( ! file . exists ( ) ) { if ( ! file . mkdir ( ) ) { LOG . error ( "failed to create FE plugin dir {}" , Config . plugin_dir ) ; System . exit ( - 1 ) ; } } }
create the plugin dir if missing
create the plugin dir if missing