/** * Show the maven settings * * @throws FileNotFoundException * @throws Exception */ private void settings() throws FileNotFoundException, Exception { File userHome = new File(System.getProperty("user.home")); File m2 = new File(userHome, ".m2"); if (!m2.isDirectory()) { error("There is no m2 directory at %s", userHome); return; } File settings = new File(m2, "settings.xml"); if (!settings.isFile()) { error("There is no settings file at '%s'", settings.getAbsolutePath()); return; } try (LineCollection lc = new LineCollection(IO.reader(settings))) { while (lc.hasNext()) { System.err.println(lc.next()); } } }
/** * Show the maven settings * * @throws FileNotFoundException * @throws Exception */ private void settings() throws FileNotFoundException, Exception { File userHome = new File(System.getProperty("user.home")); File m2 = new File(userHome, ".m2"); if (!m2.isDirectory()) { error("There is no m2 directory at %s", userHome); return; } File settings = new File(m2, "settings.xml"); if (!settings.isFile()) { error("There is no settings file at '%s'", settings.getAbsolutePath()); return; } LineCollection lc = new LineCollection(IO.reader(settings)); try { while (lc.hasNext()) { System.err.println(lc.next()); } } finally { lc.close(); } }
/** * Show the maven settings * * @throws FileNotFoundException * @throws Exception */ private void settings() throws FileNotFoundException, Exception { File userHome = new File(System.getProperty("user.home")); File m2 = new File(userHome, ".m2"); if (!m2.isDirectory()) { error("There is no m2 directory at %s", userHome); return; } File settings = new File(m2, "settings.xml"); if (!settings.isFile()) { error("There is no settings file at '%s'", settings.getAbsolutePath()); return; } FileReader rdr = new FileReader(settings); LineCollection lc = new LineCollection(new BufferedReader(rdr)); while (lc.hasNext()) { System.out.println(lc.next()); } }
/** * Show the maven settings * * @throws FileNotFoundException * @throws Exception */ private void settings() throws FileNotFoundException, Exception { File userHome = new File(System.getProperty("user.home")); File m2 = new File(userHome, ".m2"); if (!m2.isDirectory()) { error("There is no m2 directory at %s", userHome); return; } File settings = new File(m2, "settings.xml"); if (!settings.isFile()) { error("There is no settings file at '%s'", settings.getAbsolutePath()); return; } LineCollection lc = new LineCollection(IO.reader(settings)); try { while (lc.hasNext()) { System.err.println(lc.next()); } } finally { lc.close(); } }
/** * Show the maven settings * * @throws FileNotFoundException * @throws Exception */ private void settings() throws FileNotFoundException, Exception { File userHome = new File(System.getProperty("user.home")); File m2 = new File(userHome, ".m2"); if (!m2.isDirectory()) { error("There is no m2 directory at %s", userHome); return; } File settings = new File(m2, "settings.xml"); if (!settings.isFile()) { error("There is no settings file at '%s'", settings.getAbsolutePath()); return; } LineCollection lc = new LineCollection(IO.reader(settings)); while (lc.hasNext()) { System.err.println(lc.next()); } }
/** * Show the maven settings * * @throws FileNotFoundException * @throws Exception */ private void settings() throws FileNotFoundException, Exception { File userHome = new File(System.getProperty("user.home")); File m2 = new File(userHome, ".m2"); if (!m2.isDirectory()) { error("There is no m2 directory at %s", userHome); return; } File settings = new File(m2, "settings.xml"); if (!settings.isFile()) { error("There is no settings file at '%s'", settings.getAbsolutePath()); return; } try (LineCollection lc = new LineCollection(IO.reader(settings))) { while (lc.hasNext()) { System.err.println(lc.next()); } } }