/** * Takes input as a comma separated list of files * and verifies if they exist. It defaults for file:/// * if the files specified do not have a scheme. * it returns the paths uri converted defaulting to file:///. * So an input of /home/user/file1,/home/user/file2 would return * file:///home/user/file1,file:///home/user/file2. * * This method does not recognize wildcards. * * @param files the input files argument * @return a comma-separated list of validated and qualified paths, or null * if the input files argument is null */ private String validateFiles(String files) throws IOException { return validateFiles(files, false); }
validateFiles(line.getOptionValue("libjars"), true), "from -libjars command line option"); validateFiles(line.getOptionValue("files")), "from -files command line option"); validateFiles(line.getOptionValue("archives")), "from -archives command line option");
if (line.hasOption("libjars")) { conf.set("tmpjars", validateFiles(line.getOptionValue("libjars"), conf)); validateFiles(line.getOptionValue("files"), conf)); validateFiles(line.getOptionValue("archives"), conf));
if (line.hasOption("libjars")) { conf.set("tmpjars", validateFiles(line.getOptionValue("libjars"), conf)); validateFiles(line.getOptionValue("files"), conf)); validateFiles(line.getOptionValue("archives"), conf));
validateFiles(line.getOptionValue("libjars"), conf), "from -libjars command line option"); validateFiles(line.getOptionValue("files"), conf), "from -files command line option"); validateFiles(line.getOptionValue("archives"), conf), "from -archives command line option");
validateFiles(line.getOptionValue("libjars"), conf), "from -libjars command line option"); validateFiles(line.getOptionValue("files"), conf), "from -files command line option"); validateFiles(line.getOptionValue("archives"), conf), "from -archives command line option");
validateFiles(line.getOptionValue("libjars"), conf), "from -libjars command line option"); validateFiles(line.getOptionValue("files"), conf), "from -files command line option"); validateFiles(line.getOptionValue("archives"), conf), "from -archives command line option");
validateFiles(line.getOptionValue("libjars"), conf), "from -libjars command line option"); validateFiles(line.getOptionValue("files"), conf), "from -files command line option"); validateFiles(line.getOptionValue("archives"), conf), "from -archives command line option");