public static String getWebPath(FlumeConfiguration conf) { String webPath = conf.getWebAppsPath(); File f = new File(webPath); // absolute paths win, but if is not absolute, prefix with flume home if (!f.isAbsolute()) { String basepath = FlumeConfiguration.getFlumeHome(); if (basepath == null) { LOG.warn("FLUME_HOME not set, potential for odd behavior!"); } File base = new File(basepath, webPath); webPath = base.getAbsolutePath(); } return webPath; }