Examples of deleteFile()


Examples of org.apache.roller.weblogger.business.FileManager.deleteFile()

                    // ignore absolute paths, or paths that contiain '..'
                    log.debug("Ignoring delete path - "+deleteFiles[i]);
                } else {
                    try {
                        log.debug("Deleting file at path - "+deleteFiles[i]);
                        fmgr.deleteFile(getActionWeblog(), deleteFiles[i]);
                        numDeleted++;
                    } catch (FileNotFoundException ex) {
                        addError("uploadFiles.error.badPath");
                    } catch (FilePathException ex) {
                        addError("uploadFiles.error.badPath");
View Full Code Here

Examples of org.drools.core.util.FileManager.deleteFile()

        File file = new File( System.getProperty( "java.io.tmpdir" ) + File.separator + "RepoBinPackage.pkg" );
        FileManager fm = new FileManager();
        try {

            //Attempt to delete existing temporary file that may be lingering around
            fm.deleteFile( file );

            // Save file for actual test
            FileOutputStream out = new FileOutputStream( file );
            out.write( binPackage );
            out.flush();
View Full Code Here

Examples of org.eclipse.core.resources.team.IMoveDeleteHook.deleteFile()

   */
  private void unprotectedDelete(ResourceTree tree, int updateFlags, IProgressMonitor monitor) throws CoreException {
    IMoveDeleteHook hook = workspace.getMoveDeleteHook();
    switch (getType()) {
      case IResource.FILE :
        if (!hook.deleteFile(tree, (IFile) this, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork * 1000 / 2)))
          tree.standardDeleteFile((IFile) this, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork * 1000));
        break;
      case IResource.FOLDER :
        if (!hook.deleteFolder(tree, (IFolder) this, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork * 1000 / 2)))
          tree.standardDeleteFolder((IFolder) this, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork * 1000));
 
View Full Code Here

Examples of org.globus.ftp.GridFTPClient.deleteFile()

            pr.println();
        }

        try {
            ftp.authenticate(null);
            ftp.deleteFile(delURL.getPath());
        } catch (IOException e) {
            throw new ExecutionProblem(e.getMessage(), e);
        } catch (ServerException e) {
            throw new ExecutionProblem(e.getMessage(), e);
        }
View Full Code Here

Examples of org.hornetq.core.persistence.impl.journal.LargeServerMessageImpl.deleteFile()

         ClientProducer prod = session.createProducer(LargeMessageTest.ADDRESS);

         prod.send(fileMessage);

         fileMessage.deleteFile();

         session.commit();

         session.start();
View Full Code Here

Examples of org.hornetq.core.server.LargeServerMessage.deleteFile()

         log.info("Deleting pending large message as it wasn't completed: LargeMessageID:" + msgToDelete.getB());
         LargeServerMessage msg = storageManager.createLargeMessage();
         msg.setMessageID(msgToDelete.getB());
         msg.setPendingRecordID(msgToDelete.getA());
         msg.setDurable(true);
         msg.deleteFile();
      }

      return journalInfo;
   }
View Full Code Here

Examples of org.jboss.internal.soa.esb.couriers.helpers.FileHandler.deleteFile()

                                catch (CourierException e)
                                {
                                    _logger.debug("FileCourier.pickup caught exception during readOneMessage: "+e);
                                   
                                        if (null == errorFile(input))
                                                handler.deleteFile(work);
                                        else
                                                handler.renameFile(work, errorFile(input));
                                        continue;
                                }
                                File done = postFile(input);
View Full Code Here

Examples of org.jboss.internal.soa.esb.couriers.helpers.FtpFileHandler.deleteFile()

    try
    {
      FtpFileHandler handler = (FtpFileHandler) FileHandlerFactory.getInstance().getFileHandler(ftpEpr);
     
      handler.deleteFile(theFile);
    }
    catch (CourierException ex)
    {
      // TODO should really look for false being returned to indicate no such file!
    }
View Full Code Here

Examples of org.jbpm.formbuilder.server.file.FileService.deleteFile()

    //test happy path of RESTFileService.deleteFile(...)
    public void testDeleteFileOK() throws Exception {
        RESTFileService restService = new RESTFileService();
        List<Object> requestMocks = createRequestMocks();
        FileService fileService = EasyMock.createMock(FileService.class);
        fileService.deleteFile(EasyMock.same("somePackage"), EasyMock.same("myFile.tmp"));
        EasyMock.expectLastCall().once();
        requestMocks.add(fileService);
        restService.setFileService(fileService);
        Object[] mocks = requestMocks.toArray();
        EasyMock.replay(mocks);
View Full Code Here

Examples of org.mifosplatform.infrastructure.documentmanagement.contentrepository.ContentRepository.deleteFile()

            documentForUpdate.update(documentCommand);

            if (inputStream != null && documentCommand.isFileNameChanged()) {
                final ContentRepository contentRepository = this.contentRepositoryFactory.getRepository(documentStoreType);
                contentRepository.deleteFile(documentCommand.getName(), oldLocation);
            }

            this.documentRepository.saveAndFlush(documentForUpdate);

            return new CommandProcessingResult(documentForUpdate.getId());
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.