Examples of CvsDirectory


Examples of org.w3c.cvs.CvsDirectory

    public static synchronized CvsDirectory getCvsManager(File directory,
                ResourceContext ctxt,
                Properties props )
  throws CvsException
    {
  CvsDirectory cvs = null;
  String cvsroot = (String) getValue(ctxt, CVSROOT);
  if (cvsroot != null)
      cvs = CvsDirectory.getManager(directory,
            props,
            null,
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

      names[1] = getFileResource().getFile().getName();
  } else {
      names = new String[1];
      names[0] = getFileResource().getFile().getName();
  }
  CvsDirectory cvsdir = null;
  cvsdir = getCvsManager();
  cvsdir.add(names, env);
    }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

  throws CvsException
    {
  String u = (String)request.getState(AuthFilter.STATE_AUTHUSER);
  String env[] = {"USER="+u , "LOGNAME="+u };
  String comment = "("+u+") "+msg;
  CvsDirectory cvsdir = null;
  cvsdir = getCvsManager();
  cvsdir.commit(getFileResource().getFile().getName(), comment, env);
    }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

     * @exception CvsException if the CVS process failed
     */
    protected void update()
  throws CvsException
    {
  CvsDirectory cvsdir = getCvsManager();
  cvsdir.update(getFileResource().getFile().getName());
    }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

     * @exception CvsException if the CVS process failed
     */
    protected int status()
  throws CvsException
    {
  CvsDirectory cvsdir = getCvsManager();
  return cvsdir.status(getFileResource().getFile().getName());
    }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

     * @exception CvsException if the CVS process failed
     */
    protected void update()
  throws CvsException
    {
  CvsDirectory cvsdir = getCvsManager();
  cvsdir.update(getFileResource().getFile().getName());
    }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

     * @exception CvsException if the CVS process failed
     */
    protected int status()
  throws CvsException
    {
  CvsDirectory cvsdir = getCvsManager();
  return cvsdir.status(getFileResource().getFile().getName());
    }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

    public ResourceReference lookup(String name) {
  ResourceReference rr = super.lookup(name);
  if (rr == null) {
      // This may be an unchecked out directory:
      try {
    CvsDirectory cvs = getCvsManager();
    if ( cvs.getDirectoryStatus(name) == CVS.DIR_NCO )
        cvs.updateDirectory(name);
      } catch (CvsException ex) {
    String msg = "cvs update -d \""+name+"\" failed.";
    getServer().errlog(this, msg);
    return null;
      }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

      names[1] = getFileResource().getFile().getName();
  } else {
      names = new String[1];
      names[0] = getFileResource().getFile().getName();
  }
  CvsDirectory cvsdir = null;
  cvsdir = getCvsManager();
  cvsdir.add(names, env);
    }
View Full Code Here

Examples of org.w3c.cvs.CvsDirectory

  throws CvsException
    {
  String u = (String)request.getState(AuthFilter.STATE_AUTHUSER);
  String env[] = {"USER="+u , "LOGNAME="+u };
  String comment = "("+u+") "+msg;
  CvsDirectory cvsdir = null;
  cvsdir = getCvsManager();
  cvsdir.commit(getFileResource().getFile().getName(), comment, env);
    }
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.