Examples of touch()


Examples of org.apache.tomcat.core.ServerSession.touch()

      // since we verified this sessionID, we can also set
      // it and adjust the session
      request.setSession( sess );
      request.setSessionId( sessionId );
     
      sess.touch( System.currentTimeMillis() );

      // if the session was NEW ( never accessed - change it's state )
      if( sess.getState() == ServerSession.STATE_NEW ) {
    sess.setState( ServerSession.STATE_ACCESSED, request);
      }
View Full Code Here

Examples of org.apache.velocity.runtime.resource.Resource.touch()

        resource.setResourceLoader(_contextLoader);
        resource.process();
        resource.setLastModified(_contextLoader.getLastModified(resource));
        resource.setModificationCheckInterval(_contextLoader.getModificationCheckInterval());
        resource.touch();

        return resource;
    }

    /** We use this to load default resources. */
 
View Full Code Here

Examples of org.codehaus.enunciate.samples.genealogy.jaxws_client.services.impl.RelationshipServiceImpl.touch()

    }
    catch (RelationshipException e) {
      Assert.assertEquals("hi", e.getMessage());
    }

    relationshipService.touch();

  }

}
View Full Code Here

Examples of org.eclipse.core.resources.IFile.touch()

        final IFile file = ResourceUtil.getFile(page.getEditorInput());
        if (file != null && file.exists()) {
            WorkspaceJob job = new WorkspaceJob("Reload Plugins") {
                @Override
                public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
                    file.touch(monitor);
                    return Status.OK_STATUS;
                }
            };
            job.setUser(true);
            job.schedule();
View Full Code Here

Examples of org.eclipse.core.resources.IFile.touch()

      HandleDelta _newDelta = this.newDelta();
      HandleDelta _insertAdded = _newDelta.insertAdded(erlProject2);
      ErlNotificationTest.assertEquality(_insertAdded, this.listener.delta);
      final IErlSource erlFile1 = erlProject1.getSourceFile("src/nop.erl");
      IFile _file = erlFile1.getFile();
      _file.touch(null);
      HandleDelta _newDelta_1 = this.newDelta();
      HandleDelta _insertChanged = _newDelta_1.insertChanged(erlFile1, HandleDelta.F_CONTENT);
      ErlNotificationTest.assertEquality(_insertChanged, this.listener.delta);
      IFile _file_1 = erlFile1.getFile();
      Path _path = new Path("/Test002/test1.erl");
View Full Code Here

Examples of org.eclipse.core.resources.IFile.touch()

            window.run(true, false, new IRunnableWithProgress() {
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    try {
                        buildFile.getWorkspace().run(new IWorkspaceRunnable() {
                            public void run(IProgressMonitor monitor) throws CoreException {
                                buildFile.touch(monitor);
                            }
                        }, monitor);
                    } catch (CoreException e) {
                        throw new InvocationTargetException(e);
                    }
View Full Code Here

Examples of org.eclipse.core.resources.IFile.touch()

                                            logger.logError("Failed to refresh repository: " + i.getName(), ex);
                                        }
                                    }
                                }

                                buildFile.touch(monitor);
                            }
                        }, monitor);
                    } catch (CoreException e) {
                        throw new InvocationTargetException(e);
                    }
View Full Code Here

Examples of org.eclipse.core.resources.IProject.touch()

              IProject project = projectsToTouch[i];
             
              // touch to force a build of this project
              if (JavaBuilder.DEBUG)
                System.out.println("Touching project " + project.getName() + " due to external jar file change"); //$NON-NLS-1$ //$NON-NLS-2$
              project.touch(progressMonitor);
            }
          }
        };
        try {
          ResourcesPlugin.getWorkspace().run(runnable, monitor);
View Full Code Here

Examples of org.eclipse.core.resources.IProject.touch()

                  IProject project = projectsToTouch[i];

                  // touch to force a build of this project
                  if (JavaBuilder.DEBUG)
                    System.out.println("Touching project " + project.getName() + " due to external jar file change"); //$NON-NLS-1$ //$NON-NLS-2$
                  project.touch(progressMonitor);
                }
              }
            };
            try {
              ResourcesPlugin.getWorkspace().run(runnable, monitor);
View Full Code Here

Examples of org.eclipse.core.resources.IProject.touch()

      IProgressMonitor monitor = progressMonitor == null ? null: new SubProgressMonitor(progressMonitor, 1);
      IProject project = projectsToTouch[i];
      // touch to force a build of this project
      if (JavaBuilder.DEBUG)
        System.out.println("Touching project " + project.getName() + " due to external jar file change"); //$NON-NLS-1$ //$NON-NLS-2$
      project.touch(monitor);
    }
  }

  /*
   * Check if external archives have changed for the given elements and create the corresponding deltas.
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.