Examples of PerforceException


Examples of com.tek42.perforce.PerforceException

    List<Changelist> changes = new ArrayList<Changelist>();
    for(String id : ids) {
                    try{
      changes.add(getChangelist(new Integer(id), maxFiles));
                    } catch(Exception e){
                        throw new PerforceException("Could not retrieve changelists.\nResponse from perforce was:\n" + response, e);
                    }
    }
    return changes;
  }
View Full Code Here

Examples of com.tek42.perforce.PerforceException

    else
      cmd = new String[] { getP4Exe(), "changes", "-s", "submitted", path };

    StringBuilder response = getPerforceResponse(cmd);
                if(hitMax(response)){
                    throw new PerforceException("Hit perforce server limit while pulling changes: " + response);
                }
    List<String> ids = parseList(response, 1);
    List<Integer> numbers = new ArrayList<Integer>(ids.size());
    for(String id : ids) {
                    try{
      numbers.add(new Integer(id));
                    } catch (Exception e) {
                        throw new PerforceException("Failed to get change numbers.\nResponse from perforce was:\n" + response, e);
                    }
    }
    return numbers;
  }
View Full Code Here

Examples of com.tek42.perforce.PerforceException

        for (String user : users) {
            com.tek42.perforce.model.User pu;
            try {
                 pu = depot.getUsers().getUser(user);
            } catch (Exception e) {
                throw new PerforceException("Problem getting user information for " + user,e);
            }
            //If there is no such user in perforce, then ignore and keep going.
            if (pu == null) {
                LOGGER.warning("Perforce User ("+user+") does not exist.");
                continue;
View Full Code Here

Examples of com.tek42.perforce.PerforceException

        } catch(IOException e) {
            //try to close all the pipes before throwing an exception
            closeBuffers();

            throw new PerforceException("Could not run perforce command.", e);
        }
    }
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.