Examples of lastModified()


Examples of com.xebialabs.overthere.OverthereFile.lastModified()

    options.set(CONNECTION_TYPE, SFTP);
    OverthereConnection connection = Overthere.getConnection("ssh", options);
    try {
      OverthereFile motd = connection.getFile("/etc/motd");
      System.out.println("Length        : " + motd.length());
      System.out.println("Last modified : " + motd.lastModified());
      System.out.println("Exists        : " + motd.exists());
      System.out.println("Can read      : " + motd.canRead());
      System.out.println("Can write     : " + motd.canWrite());
      System.out.println("Can execute   : " + motd.canExecute());
    } finally {
View Full Code Here

Examples of com.zaranux.client.java.io.File.lastModified()

        public void onSuccess(Boolean result) {
          if(result) {// creating folder succeed
            if(dn_parent.isExpandedBefore())
            {
              String tooltip =  f.lastModified()+ ",Size:" + 0 + " (bytes)";
              d_child.setToolTip(tooltip);
              //filesystemTreeGrid.setFields();
              d_child.setEnabled(true);
              int row = filesystemTreeGrid.getRecordIndex(d_child);
              filesystemTreeGrid.startEditing(row, 0, true);
View Full Code Here

Examples of helma.framework.repository.Repository.lastModified()

        // walk through repositories and check if any of them have changed.
        for (int i = 0; i < list.size(); i++) {
            Repository repository = (Repository) list.get(i);
            long lastScan = lastRepoScan.containsKey(repository) ?
                    ((Long) lastRepoScan.get(repository)).longValue() : 0;
            if (repository.lastModified() != lastScan) {
                lastRepoScan.put(repository, new Long(repository.lastModified()));
                checkRepository(repository, false);
            }
        }
View Full Code Here

Examples of helma.framework.repository.Repository.lastModified()

        for (int i = 0; i < list.size(); i++) {
            Repository repository = (Repository) list.get(i);
            long lastScan = lastRepoScan.containsKey(repository) ?
                    ((Long) lastRepoScan.get(repository)).longValue() : 0;
            if (repository.lastModified() != lastScan) {
                lastRepoScan.put(repository, new Long(repository.lastModified()));
                checkRepository(repository, false);
            }
        }

        boolean debug = "true".equalsIgnoreCase(app.getProperty("helma.debugTypeManager"));
View Full Code Here

Examples of helma.framework.repository.Resource.lastModified()

            Iterator iterator = app.getRepositories().iterator();
            while (iterator.hasNext()) {
                Repository repository = (Repository) iterator.next();
                Resource resource = repository.getResource(resourceName);
                if (resource != null) {
                    checksum += resource.lastModified();
                }
            }
        }

        if (resources != null) {
View Full Code Here

Examples of java.io.File.lastModified()

      File file = new File(filename);
      if (!file.exists()) {
        doc.setHttpCode("httpcode " + HttpConstants.HTTP_NOTFOUND);
        return doc;
      }
      long fileLastModified = file.lastModified();
      long ifModifiedSinceTime = ifModifiedSince == null ? 0 : ifModifiedSince.getTime();
      if (fileLastModified > ifModifiedSinceTime) {
        byte[] content = readFileToByteArray(file);
        doc.setContent(content);
        doc.setHttpCode("httpcode " + HttpConstants.HTTP_OK);
View Full Code Here

Examples of java.io.File.lastModified()

                jarFilePath = jarFilePath.substring(5);
            }
            file = new File(jarFilePath);
        }
        if(file.exists()) {
            return file.lastModified();
        }
        return -1L;
    }

    @Deprecated
View Full Code Here

Examples of java.io.File.lastModified()

        // if we were writing to the second file, carry on from there
     
      if ( f1.exists() && f2.exists()){
 
        if ( f1.lastModified() < f2.lastModified()){
         
          first_file = false;
        }
      }
    }catch( Throwable ignore ){
View Full Code Here

Examples of java.io.File.lastModified()

          }
        String aFileSize = lengthftm.format(aFileLen = aFile.length());
        total += (aFileLen + 1023) / 1024; //
        while (aFileSize.length() < 12)
          aFileSize = " " + aFileSize;
        String aFileDate = Acme.Utils.lsDateStr(new Date(aFile.lastModified()));
        while (aFileDate.length() < 14)
          aFileDate += " ";
        String aFileDirsuf = (aFile.isDirectory() ? "/" : "");
        String aFileSuf = (aFile.isDirectory() ? "/" : "");
        p.println(aFileType + aFileRead + aFileWrite + aFileExe + "  " + aFileSize + "  " + aFileDate + "  "
View Full Code Here

Examples of java.io.File.lastModified()

        return f != null && f.exists() ? f.length() : 0;
    }

    public Timestamp getLastModified() {
        File f = getFile();
        return f != null && f.exists() ? new Timestamp(f.lastModified()) : null;
    }

    public String getLevel() {
        return null;
    }
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.