Package org.w3c.cvs

Examples of org.w3c.cvs.CvsDirectory.status()


     */
    protected int status()
  throws CvsException
    {
  CvsDirectory cvsdir = getCvsManager();
  return cvsdir.status(getFileResource().getFile().getName());
    }

    protected String statusToString(int status) {
  return CvsDirectory.statusToString(status);
    }
View Full Code Here


     */
    protected int status()
  throws CvsException
    {
  CvsDirectory cvsdir = getCvsManager();
  return cvsdir.status(getFileResource().getFile().getName());
    }

    protected String statusToString(int status) {
  return CvsDirectory.statusToString(status);
    }
View Full Code Here

     */
    protected int status()
  throws CvsException
    {
  CvsDirectory cvsdir = getCvsManager();
  return cvsdir.status(getFileResource().getFile().getName());
    }

    protected String statusToString(int status) {
  return CvsDirectory.statusToString(status);
    }
View Full Code Here

        try {
      // Local status first:
      CvsDirectory cvs =
          CvsDirectory.getManager(dir,
                putlist.props);
      st  = cvs.status(file.getName());
      if ( cvsurl != null )
          g.append("Status: <a href=\""+cvsurl+ "\">"
             , cvs.statusToString(st)
             , "</a><br>");
      else
View Full Code Here

      try {
          File         sf  = putlist.getServerFile(file);
          File         sd  = new File(sf.getParent());
          CvsDirectory sc  =
        CvsDirectory.getManager(sd, putlist.props);
          int          sst = sc.status(file.getName());
          if (sst == CVS.FILE_C) {
        g.append("Publish: (needed) <B><U>",
           sc.statusToString(sst),
           "</U></B><br>");
          } else if ((st == CVS.FILE_M) ||
View Full Code Here

  try {
      // First step: does the private version needs commit ?
      File         d  = new File(file.getParent());
      CvsDirectory c  = CvsDirectory.getManager(d, props);
      if ( c.status(file.getName()) == CVS.FILE_M ) {
    String author = pe.getAuthor();
    String env [] = { "USER="+author ,
          "LOGNAME="+author };
    String msg    = ((author != null)
         ? "Published by "+author+" through Jigsaw"
View Full Code Here

         : "Published through Jigsaw");
    c.commit(file.getName(), msg, env);
      } else if ( debug ) {
    System.out.println("PutList: no commit needed on "+
           file.getAbsolutePath()+
           " st="+c.status(file.getName()));
      }
      // Second step: publish
      File sd = new File(sfile.getParent());
      try {
    CvsDirectory sc =
View Full Code Here

      File sd = new File(sfile.getParent());
      try {
    CvsDirectory sc =
        CvsDirectory.getManager(sd, props);
    String filename = sfile.getName();
    int cvs_status = sc.status(filename);
    if (debug) {
        System.out.println("publishing "+
               CvsDirectory.statusToString(cvs_status)+
               " file : "+filename);
    }
View Full Code Here

        File backup = new File(sfile.getParent(), filename+".bak");
        try {
      org.w3c.util.IO.copy(sfile, backup);
      //try to merge
      sc.update(filename);
      cvs_status = sc.status(filename);
      if (cvs_status == CVS.FILE_M) {
          //merge done, so commit.
          String author = pe.getAuthor();
          String env [] = { "USER="+author ,
                "LOGNAME="+author };
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.