Examples of copyFile()


Examples of com.google.code.ftspc.lector.parsers.Archives.ZIP.MoveDir.copyFile()

                if (selectedParser.getClass().getName().indexOf("ZIP") < 1) {
                    hash = (new Date()).getTime() + Long.toHexString(random.nextLong())
                            + Long.toHexString(random.nextLong());
                    MoveDir moveDir = new MoveDir();
                    newFilePath = Vars.pathToDayDir + "/" + hash;
                    moveDir.copyFile(someFileForTypeRecognizing, new File(newFilePath));
                    someFileForTypeRecognizing.delete();
                    filePath = newFilePath;
                }

                selectedParser.start_th(filePath, fileName);
View Full Code Here

Examples of com.google.devtools.moe.client.FileSystem.copyFile()

      return;
    }

    try {
      fs.makeDirsForFile(dest);
      fs.copyFile(src, dest);
    } catch (IOException e) {
      throw new MoeProblem(e.getMessage());
    }

    if (destExists) {
View Full Code Here

Examples of com.vmware.vim.binding.vim.FileManager.copyFile()

      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         @Override
         public VcTask body() throws Exception {
            FileManager mgr = VcContext.getService().getFileManager();
            return new VcTask(TaskType.CopyFile,
               mgr.copyFile(srcDsPath, srcDs.getDatacenterMoRef(),
                            dstDsPath, dstDs.getDatacenterMoRef(), true),
               callback);
         }
      });
      return task;
View Full Code Here

Examples of net.raymanoz.util.FileUtil.copyFile()

  protected File createExecuteFile(Configuration configuration) {
    File executeDirectory = configuration.getExecuteDirectory();
    File executeFile = assembler.newFile(executeDirectory, file.getName());
    FileUtil fileUtil = assembler.getFileUtil();
    fileUtil.copyFile(file, executeFile, assembler.getProperties());
    return executeFile;
  }

  public String getFileName() {
    return file.getName();
View Full Code Here

Examples of net.sourceforge.pebble.domain.FileManager.copyFile()

        }

        blog.info("File \"" + oldName + "\" renamed to \"" + newName + "\".");
      } else {
        if (FileManager.hasEnoughSpace(blog, fileManager.getFileMetaData(path, name).getSizeInKB())) {
          fileManager.copyFile(path, name, newName);

          // if it's a theme file, also create a copy in blog.dir/theme
          if (type.equals(FileMetaData.THEME_FILE)) {
            fileManager = new FileManager(blog, FileMetaData.BLOG_DATA);
            fileManager.copyFile("/theme" + path, name, newName);
View Full Code Here

Examples of net.sourceforge.purrpackage.recording.Copier.copyFile()

      for (File x : source.listFiles()) {
        copyRecursively(x, new File(target, x.getName()));
      }
    } else {
      Copier c = new Copier();
      c.copyFile(source, target);
    }
  }

    boolean sabotageIo;
View Full Code Here

Examples of org.apache.tools.ant.util.FileUtils.copyFile()

        // Copy user-provided context xml file into the temporary webapp/
        // container directory
        File webappsDir = new File(getTmpDir(), "webapps");
        if (getContextXml() != null)
        {
            fileUtils.copyFile(getContextXml(),
                new File(webappsDir, getContextXml().getName()));
        }
       
    }
   
View Full Code Here

Examples of org.apache.tools.ant.util.FileUtils.copyFile()

            RESOURCE_PATH + "tomcat3x/modules.xml",
            new File(confDir, "modules.xml"));
       
        // deploy the web-app by copying the WAR file
        File webappsDir = createDirectory(tmpDir, "webapps");
        fileUtils.copyFile(getDeployableFile().getFile(),
            new File(webappsDir, getDeployableFile().getFile().getName()),
            null, true);
    }

}
View Full Code Here

Examples of org.apache.tools.ant.util.FileUtils.copyFile()

        }
       
        ResourceUtils.copyResource(getProject(),
            RESOURCE_PATH + theResourcePrefix + "/tomcat-users.xml",
            new File(confDir, "tomcat-users.xml"));
        fileUtils.copyFile(new File(getDir(), "conf/web.xml"),
            new File(confDir, "web.xml"));

        // deploy the web-app by copying the WAR file into the webapps
        // directory
        File webappsDir = createDirectory(getTmpDir(), "webapps");
View Full Code Here

Examples of org.apache.tools.ant.util.FileUtils.copyFile()

            new File(confDir, "web.xml"));

        // deploy the web-app by copying the WAR file into the webapps
        // directory
        File webappsDir = createDirectory(getTmpDir(), "webapps");
        fileUtils.copyFile(getDeployableFile().getFile(),
            new File(webappsDir, getDeployableFile().getFile().getName()),
            null, true);
       
        // Copy user-provided configuration files into the temporary conf/
        // container directory.
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.