private File chooseTempDirParent() throws IOException { final File appRoot = new File(domain.getApplicationRoot()); /* * Apparently during embedded runs the applications directory * might not be present already. Create it if needed. */ if (!appRoot.isDirectory()) { if (!appRoot.exists() && !appRoot.mkdirs()) { throw new IOException(adminStrings.getLocalString("commandrunner.errCreDir", "Could not create the directory {0}; no further information is available.", appRoot.getAbsolutePath())); } } return appRoot; } }
private File chooseTempDirParent() throws IOException { final File appRoot = new File(domain.getApplicationRoot()); /* * Apparently during embedded runs the applications directory * might not be present already. Create it if needed. */ if (!appRoot.isDirectory()) { if (!appRoot.exists() && !appRoot.mkdirs()) { throw new IOException(adminStrings.getLocalString("commandrunner.errCreDir", "Could not create the directory {0}; no further information is available.", appRoot.getAbsolutePath())); } } return appRoot; } }
File expansionDir = new File(domain.getApplicationRoot(), repositoryBitName); if (!expansionDir.mkdirs()) {
File expansionDir = new File(domain.getApplicationRoot(), repositoryBitName); if (!expansionDir.mkdirs()) {
if (!source.isDirectory()) { isDirectoryDeployed = false; expansionDir = new File(domain.getApplicationRoot(), VersioningUtils.getRepositoryName(name)); path = expansionDir; } else {
if (!source.isDirectory()) { isDirectoryDeployed = false; expansionDir = new File(domain.getApplicationRoot(), name); path = expansionDir; } else {