Examples of addFile()


Examples of org.jnode.fs.FSDirectory.addFile()

        FSFile file = null;
        ByteBuffer data = ByteBuffer.wrap(TestUtils.getTestData(FILE_SIZE_IN_WORDS));

        if (config.isReadOnly()) {
            try {
                file = rootDir.addFile(fileName).getFile();
                fail("addFile must throw ReadOnlyFileSystemException in readOnly mode");
            } catch (ReadOnlyFileSystemException rofse) {
                // success
            }
        } else {
View Full Code Here

Examples of org.jwebsocket.factory.JWebSocketJarClassLoader.addFile()

          try {
            lJarFilePath = JWebSocketConfig.getLibraryFolderPath(lValue);
            if (mLog.isDebugEnabled()) {
              mLog.debug("Trying to load class '" + lClassName + "' from jar '" + lJarFilePath + "'...");
            }
            lClassLoader.addFile(lJarFilePath);
            lClass = lClassLoader.loadClass(lClassName);
            if (mLog.isDebugEnabled()) {
              mLog.debug("Class '" + lClassName + "' successfully loaded from '" + lJarFilePath + "'.");
            }
          } catch (Exception ex) {
View Full Code Here

Examples of org.kmem.kosh.sftp.directory.FileList.addFile()

       
        String str = r.getLocation().toPortableString();
       
        switch(r.getType()){
          case IResource.FILE:
            fl.addFile(str);
          break;

          case IResource.FOLDER:
          case IResource.PROJECT:
            fl.addFolder((IContainer)r);
View Full Code Here

Examples of org.mitre.medfacts.i2b2.cli.RunConfiguration.addFile()

          String filename = fileNameExpression.evaluate(fileElement);
          File file = new File(filename);
          //logger.info(String.format("    - %s", filename));

          runConfiguration.addFile(file);
        }
      }
      logger.info("=== RUNS end ===");

      return runConfigurationList;
View Full Code Here

Examples of org.olat.ims.cp.objects.CPResource.addFile()

    } else if (parentElement instanceof CPResource) {
      // parent is a <resource>
      CPResource resource = (CPResource) parentElement;
      if (newElement instanceof CPFile) {
        resource.addFile((CPFile) newElement);
      } else if (newElement instanceof CPDependency) {
        resource.addDependency((CPDependency) newElement);
      } else {
        throw new OLATRuntimeException(CPOrganizations.class, "you can only add <dependency> or <file> elements to a Resource",
            new Exception());
View Full Code Here

Examples of org.platformlayer.ops.Command.addFile()

      command.addLiteral("-w"); // Simple auth password
      command.addQuoted(password);

      command.addLiteral("-f"); // Command file
      command.addFile(ldifTempFile);

      target.executeCommand(command);
    } finally {
      target.rmdir(ldifTempDir);
    }
View Full Code Here

Examples of org.redline_rpm.Builder.addFile()

          if ( archive != null) {
            URL url = new URL( "jar:" + archive.toURL() + "!/" + entry);
            builder.addURL( prefix + entry, url, filemode, dirmode, directive, username, group);
          } else {
            File file = new File( scanner.getBasedir(), entry);
            builder.addFile(prefix + entry, file, filemode, dirmode, directive, username, group);
          }
        }
      }
      for ( Ghost ghost : ghosts) {
        builder.addFile( ghost.getPath(), null, ghost.getFilemode(), ghost.getDirmode(), Directive.GHOST, ghost.getUsername(), ghost.getGroup());
View Full Code Here

Examples of org.redline_rpm.payload.Contents.addFile()

        if ( !parent.endsWith( "/")) parent += "/";
        for ( Node file : editor.findNodes( "rpm:file")) {
          try {
            editor.pushContext( file);
            File source = new File( editor.getValue( "text()"));
            include.addFile( new File( parent, source.getName()).getPath(), source, editor.getInteger( "@permission", permission));
          } finally {
            editor.popContext();
          }
        }
      } finally {
View Full Code Here

Examples of org.rhq.enterprise.server.plugin.pc.content.DistributionDetails.addFile()

            detail.setDescription(d.getDistributionType().getDescription());
            List<DistributionFile> files = distManager.getDistributionFilesByDistId(d.getId());
            for (DistributionFile f : files) {
                DistributionFileDetails dfd = new DistributionFileDetails(f.getRelativeFilename(), f.getLastModified(),
                    f.getMd5sum());
                detail.addFile(dfd);
            }
            distDetails.add(detail);
        }
    }
View Full Code Here

Examples of org.richfaces.model.entity.Directory.addFile()

          data = new LinkedHashMap();
          Project projectA = new Project("projectA", 10);

          Directory adir1 = new Directory("ADir1", 50);

          adir1.addFile(new File("AFile1", 60));
          adir1.addFile(new File("AFile2", 61));

          Directory adir2 = new Directory("ADir2", 101);

          projectA.addDirectory(adir1);
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.