Examples of FileInfo


Examples of org.tc65sh.device.FileInfo

        FileInputStream in = new FileInputStream(f);
        byte[] buf = new byte[(int) f.length()];
        in.read(buf);
        in.close();
        ByteArray content = new ByteArray(buf);
        FileInfo fi = new FileInfo(false, f.getName(), (int) f.length(), new Date(f.lastModified()));
        FileHolder fh = new FileHolder(fi, content);
        return fh;
    }
View Full Code Here

Examples of org.tmatesoft.hg.util.FileInfo

    FileWalker fw = new FileWalker(repo, testRepoLoc, pathSrc, null);
    int execFound, linkFound, regularFound;
    execFound = linkFound = regularFound = 0;
    while(fw.hasNext()) {
      fw.next();
      FileInfo fi = fw.file();
      boolean executable = fi.isExecutable();
      boolean symlink = fi.isSymlink();
      if (executable) {
        execFound++;
      }
      if (symlink) {
        linkFound++;
View Full Code Here

Examples of org.tmatesoft.hg.util.FileInfo

    boolean exec, link, file;
    exec = link = file = false;
    while (fw.hasNext()) {
      fw.next();
      FileInfo fi = fw.file();
      String fn = fw.name().toString();
      if (fn.equals("file-link")) {
        link = true;
        errorCollector.assertTrue("Symlink shall exist despite the fact it points to nowhere", fi.exists());
        errorCollector.assertFalse(fi.isExecutable());
        errorCollector.assertTrue(fi.isSymlink());
      } else if (fn.equals("file-exec")) {
        exec = true;
        errorCollector.assertTrue(fi.isExecutable());
        errorCollector.assertFalse(fi.isSymlink());
      } else if (fn.equals("regular-file")) {
        file = true;
        errorCollector.assertFalse(fi.isExecutable());
        errorCollector.assertFalse(fi.isSymlink());
      }
    }
    errorCollector.assertTrue("Missing executable file in WC", exec);
    errorCollector.assertTrue("Missing symlink in WC", link);
    errorCollector.assertTrue("Missing regular file in WC", file);
View Full Code Here

Examples of org.tmatesoft.hg.util.FileInfo

    TreeSet<Path> knownEntries = ds.all(); // here just to get dirstate initialized
    while (repoWalker.hasNext()) {
      cs.checkCancelled();
      repoWalker.next();
      final Path fname = getPathPool().mangle(repoWalker.name());
      FileInfo f = repoWalker.file();
      Path knownInDirstate;
      if (!f.exists()) {
        // file coming from iterator doesn't exist.
        if ((knownInDirstate = ds.known(fname)) != null) {
          // found in dirstate
          processed.add(knownInDirstate);
          if (ds.checkRemoved(knownInDirstate) == null) {
View Full Code Here

Examples of org.webslinger.container.FileInfo

        protected void checkForMigration(FileObject ptr) throws EditorException, IOException, ServletException {
            Editor.this.checkForMigration(ptr, CollectionUtil.toMap("fileInfo", getFileInfo(), "filePath", filePath, "fileContext", this));
        }

        protected FileInfo checkHook(String hook, String command) throws EditorException, IOException, ServletException {
            FileInfo fileInfo = getFileInfo();
            Object result = runHook(hook, CollectionUtil.toMap("fileInfo", fileInfo, "filePath", filePath, "fileContext", this));
            if (result instanceof Collection) {
                Iterator it = ((Collection) result).iterator();
                while (it.hasNext()) {
                    Object hookResult = it.next();
View Full Code Here

Examples of org.xmlBlaster.util.property.Property.FileInfo

            }
         } // end of if ()
        
         if ( is == null) {
            // Use xmlBlaster way of searching
            FileInfo i = p.findPath(propFile);
            if ( i != null) {
               is = i.getInputStream();
            } // end of if ()

         } // end of if ()
        
         if ( is != null) {
View Full Code Here

Examples of uk.org.microbase.filesystem.spi.FileInfo

  {
    //Download necessary responder file
    activeProcessDao.acquireLock();
    try
    {
      FileInfo fileInfo = process.getResponder().getFileInfo();

      File warFile = new File(webappDir, fileInfo.getName());

      if (warFile.exists())
      {
        logger.log(Level.INFO,
            "WAR file: {0} already exists. It''s not necessary to "
            + "download/install responder: {1}",
            new Object[]{warFile.getAbsolutePath(),
            process.getResponder().getTaskTypeGuid()});
      }
      else
      {
        process.setState(ActiveProcess.State.DOWNLOADING);
        activeProcessDao.updateProcess(process);
        logger.log(Level.INFO,
            "Downloading responder executable: {0} to {1}",
            new Object[]{fileInfo.toString(), warFile.getAbsolutePath()});
        runtime.getMicrobaseFS().download(
            fileInfo.getBucket(), fileInfo.getPath(), fileInfo.getName(),
            warFile);
        logger.log(Level.INFO, "Download of: {0} complete", fileInfo.toString());
        process.setState(ActiveProcess.State.INSTALLING);
        activeProcessDao.updateProcess(process);
        try
        {
          Thread.sleep(WAIT_FOR_CONTAINER_DEPLOY_MS);
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.