List of usage examples for org.apache.commons.lang3 SystemUtils getUserDir
public static File getUserDir()
Gets the user directory as a File .
From source file:io.github.blindio.prospero.core.browserdrivers.phantomjs.PhantomJSInstaller.java
public static String getPhantomJSInstallDirPath() { return SystemUtils.getUserDir().getAbsolutePath() + SystemUtils.FILE_SEPARATOR + PHANTOMJS_INSTALL_DIR + SystemUtils.FILE_SEPARATOR; }
From source file:org.lenskit.config.LenskitConfigDSL.java
/** * Get the base URL for this configuration. * @return The base URI.// ww w.j av a 2 s.c om */ @Nonnull public URI getBaseURI() { if (baseURI == null) { return SystemUtils.getUserDir().toURI(); } else { return baseURI; } }
From source file:org.lenskit.config.LenskitConfigDSLTest.java
@Test public void testInitialBaseURI() { LenskitConfigDSL dsl = LenskitConfigDSL.forConfig(new LenskitConfiguration()); assertThat(new File(dsl.getBaseURI().getPath()), equalTo(SystemUtils.getUserDir())); }
From source file:zz.pseas.ghost.utils.LoginUtils.java
/** * getCaptchaDir:. <br/> //from www .j a v a 2 s.c o m * Captcha// */ public static void getCaptchaDir() { File tmpath = SystemUtils.getUserDir(); String path = tmpath.toString() + "\\captcha"; File workdir = new File(path); if (!workdir.exists()) { workdir.mkdirs(); } }