Examples of mkdir()


Examples of java.io.File.mkdir()

 
      monitor.setTaskName("Deploying wga from location '" + wgaWarOrFolder.getAbsolutePath()  + "'.");
      // deploy wga
      File target = getDeployDir();
      if (!target.exists()) {
        target.mkdir();
        if (wgaWarOrFolder.isFile() && wgaWarOrFolder.getName().endsWith(".war")) {
          FileUtils.unzip(wgaWarOrFolder, target);
        } else if (wgaWarOrFolder.isDirectory()){
          WGUtils.copyDirContent(wgaWarOrFolder, target);
        }
View Full Code Here

Examples of java.io.File.mkdir()

        ((FTPSClient) client).execPROT("P");
        assertTrue(getActiveSession().getDataConnection().isSecure());

        File dir = new File(ROOT_DIR, "dir");
        dir.mkdir();

        client.listFiles(dir.getName());
    }

    public void testReceiveEmptyFile() throws Exception {
View Full Code Here

Examples of java.io.File.mkdir()

            throw new IllegalStateException("Collection does not exist: "
                    + colDir.getAbsolutePath());
        }
        File idxDir = new File(colDir, INDEX_DIR_NAME);
        if(!idxDir.exists()) {
            boolean created = idxDir.mkdir();
            if(!created) {
                throw new IllegalStateException("Could not create an index directory: "
                        + idxDir.getAbsolutePath());
            }
        }
View Full Code Here

Examples of java.io.File.mkdir()

            File newDir = getTargetFile(newDirName);
            if (!newDir.exists()) {
                if (verbose)
                    Debug.output("Creating " + newDir);
                if (!fakeit && overwrite)
                    newDir.mkdir();
            }
            super.handleDirectory(directory, contentNames);
        } else {
            notCopiedList.add(directory);
        }
View Full Code Here

Examples of java.io.File.mkdir()

            tmpFile = File.createTempFile("gradle_ivy_cache", "");
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
        tmpFile.delete();
        tmpFile.mkdir();
        DeleteOnExit.addFile(tmpFile);
        return tmpFile;
    }

    public AbstractResolver createMavenRepoResolver(String name, String root, String... jarRepoUrls) {
View Full Code Here

Examples of java.io.File.mkdir()

   private void createOutputDir()
   {
      File dir = new File(OUTPUT_DIR);
      if (!dir.exists())
      {
         dir.mkdir();
      }
   } 
}
View Full Code Here

Examples of java.io.File.mkdir()

            assert (parentDir.isDirectory());
            for(String dir : dirs) {
                assert (parentDir.exists());
                File curDir = new File(parentDir, dir);
                if(!curDir.exists()) {
                    boolean mkdirSucc = curDir.mkdir();
                    assert (mkdirSucc);
                    System.err.println("Created directory.. " + curDir.getAbsolutePath());
                }
                parentDir = curDir;
            }
View Full Code Here

Examples of java.io.File.mkdir()

        }
        if(!baseDir.canWrite()) {
            throw new DbException("Could not write file. Check the permission of "
                    + baseDir.getAbsolutePath());
        }
        if(!colDir.mkdir()) {
            throw new IllegalStateException("create directory failed: " + colDir.getAbsolutePath());
        }
        coll = new DbCollection(colName, this);
        _collectionCache.put(colName, coll);
        return coll;
View Full Code Here

Examples of java.io.File.mkdir()

    protected void copyResource(File source, File destination){

        if (!(source.equals((temRep)))){    // If the archive is written  inside a resource repository, do not copy this temp rep
            if (source.isDirectory()){
                File directory = destination;
                directory.mkdir();

                File[] files =  source.listFiles();
                if (files != null){
                    for(int i=0;i < files.length; i++){
                        File f = files[i];
View Full Code Here

Examples of java.io.File.mkdir()

    Profiler profiler = new Profiler(prepName, "docs");

    File typeDir = new File(docDir, fileType);
    File prepOutputDir = new File(outputDir, prepName);
    if (!prepOutputDir.exists()) {
      if (!prepOutputDir.mkdir()) {
        mLog.error("Could not create output dir: " + prepOutputDir.getAbsolutePath());
        System.exit(1);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.