Examples of mkdirs()


Examples of org.glassfish.cluster.ssh.sftp.SFTPClient.mkdirs()

            try {
                if(!sftp.exists(SSH_DIR)) {
                    if(logger.isLoggable(Level.FINER)) {
                        logger.fine(SSH_DIR + " does not exist");
                    }
                    sftp.mkdirs(".ssh", 0700);
                }
            } catch (Exception e) {
                if(logger.isLoggable(Level.FINER)) {
                    e.printStackTrace();
                }
View Full Code Here

Examples of org.gradle.util.TestFile.mkdirs()

    public void buildFailsWhenSpecifiedSettingsFileDoesNotContainMatchingProject() {
        TestFile settingsFile = testFile("settings.gradle");
        settingsFile.write("// empty");

        TestFile projectdir = testFile("project dir");
        projectdir.mkdirs();

        ExecutionFailure result = usingProjectDir(projectdir).usingSettingsFile(settingsFile).runWithFailure();
        result.assertThatDescription(startsWith("Could not select the default project for this build. No projects in this build have project directory"));
    }
View Full Code Here

Examples of org.jboss.forge.addon.resource.DirectoryResource.mkdirs()

   public Result execute(UIExecutionContext context) throws Exception
   {
      DirectoryResource cloneFolder = targetDirectory.getValue();
      if (!cloneFolder.exists())
      {
         cloneFolder.mkdirs();
      }
      Git clone = gitUtils.clone(cloneFolder, uri.getValue());
      gitUtils.close(clone);
      context.getUIContext().setSelection(cloneFolder);
      return Results.success();
View Full Code Here

Examples of org.jboss.forge.resource.DirectoryResource.mkdirs()

   {
      Result result = Results.success("New project has been created.");
      DirectoryResource directory = targetLocation.getValue();
      DirectoryResource targetDir = directory.getChildDirectory(named.getValue());

      if (targetDir.mkdirs() || overwrite.getValue())
      {
         ProjectType value = type.getValue();

         Project project = null;
         if (value != null)
View Full Code Here

Examples of org.jboss.forge.resources.DirectoryResource.mkdirs()

            {
               throw new AbortedException("Directory " + buildDir.getFullyQualifiedName()
                        + " already exists");
            }
            buildDir.delete(true);
            buildDir.mkdirs();
         }
         else
         {
            // Resource does not exist. Create it
            checkoutDir.mkdirs();
View Full Code Here

Examples of org.jruby.util.NormalizedFile.mkdirs()

        if (!home.startsWith("file:")) {
            NormalizedFile f = new NormalizedFile(home);
            if (!f.isAbsolute()) {
                home = f.getAbsolutePath();
            }
            f.mkdirs();
        }
        return home;
    }

    private class ArgumentProcessor {
View Full Code Here

Examples of org.maqetta.server.IStorage.mkdirs()

  public boolean mkdirs() throws IOException {
    try {
      IStorage parent = this.getParentFile();
      if (parent != null && !parent.exists()) {
        parent.mkdirs();
      }
      // if(this.store.fetchInfo().isDirectory())
      this.store.mkdir(EFS.NONE, null);
    } catch (CoreException e) {
      throw new IOException(e);
View Full Code Here

Examples of org.sf.bee.commons.localstore.BeeResource.mkdirs()

        final String path = PathUtils.merge(_appPath,
                configValue.endsWith("/") ? configValue : configValue + "/");
        final BeeResource resource = BeeLocalStore.getInstance().getResource(
                path.concat("foo.tmp"));
        if (!resource.exists()) {
            resource.mkdirs();
        }
        final String httpDocRoot = resource.getParentUrl();

        // retrieve parameters and load into httpConfiguration wrapper
        final HashMap<String, String> data = new HashMap<String, String>();
View Full Code Here

Examples of railo.commons.io.res.Resource.mkdirs()

          int mode;
          while ( ( entry = tis.getNextTarEntry()) != null ) {
            //print.ln(entry);
            Resource target=targetDir.getRealResource(entry.getName());
              if(entry.isDirectory()) {
                  target.mkdirs();
              }
              else {
                Resource parent=target.getParentResource();
                  if(!parent.exists())parent.mkdirs();
                  IOUtil.copy(tis,target,false);
View Full Code Here

Examples of tachyon.UnderFileSystem.mkdirs()

    UnderFileSystem ufs = UnderFileSystem.get(path);

    if (ufs.exists(path)) {
      ufs.delete(path, true);
    }
    if (!ufs.mkdirs(path, true)) {
      throw new IOException("Failed to make folder: " + path);
    }
  }

  public void start() throws IOException {
View Full Code Here
TOP
Copyright © 2015 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.