Package com.mongodb.hadoop

Examples of com.mongodb.hadoop.HadoopVersionFilter


                current = current.getParentFile();
                core = new File(current, "core");
            }

            File file = new File(root, "build/libs").getCanonicalFile();
            File[] files = file.listFiles(new HadoopVersionFilter(findTestJar));
            if (files.length == 0) {
                throw new RuntimeException(format("Can't find jar.  project version = %s, path = %s, findTestJar = %s",
                                                  PROJECT_VERSION, file, findTestJar));
            }
            return files[0];
View Full Code Here


                if (contains) {
                    File file = new File(url.toURI());
                    FileUtils.copyFile(file, new File(hadoopLib, "mongo-java-driver.jar"));
                }
            }
            File coreJar = new File(PROJECT_HOME, "core/build/libs").listFiles(new HadoopVersionFilter())[0];
            FileUtils.copyFile(coreJar, new File(hadoopLib, "mongo-hadoop-core.jar"));

        } catch (IOException e) {
            throw new RuntimeException(e);
        } catch (URISyntaxException e) {
View Full Code Here

TOP

Related Classes of com.mongodb.hadoop.HadoopVersionFilter

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.