Package com.tek42.perforce.model

Examples of com.tek42.perforce.model.Group


            return PollingResult.BUILD_NOW;
        }

        try {
            Node buildNode = getPollingNode(project);
            Depot depot;
            if (buildNode == null) {
                depot = getDepot(launcher,workspace,project,null,buildNode);
                logger.println("Using master");
            } else {
                depot = getDepot(buildNode.createLauncher(listener),buildNode.getRootPath(),project,null, buildNode);
View Full Code Here


        PrintStream log = loglistener.getLogger();
        TaskListener listener = new StreamTaskListener(log);
        Launcher launcher = node.createLauncher(listener);
       
        try {
            Depot depot = getDepot(launcher, workspace, project, null, node);
            final String effectiveProjectPath = MacroStringHelper.substituteParameters(
                    projectPath, this, project, node, null);
            Workspace p4workspace = getPerforceWorkspace(
                project,
                effectiveProjectPath,
View Full Code Here

            logPrinter.start();
            filePath.act(remoteCall);
            logPrinter.join();

        } catch (Exception e) {
            throw new PerforceException("Could not run quick clean.", e);
        }
    }
View Full Code Here

            if (depot != null) {
                try {
                    int number = Integer.parseInt(change);
                    Changelist changelist = depot.getChanges().getChangelist(number, -1);
                    if (changelist.getChangeNumber() != number)
                        throw new PerforceException("broken");
                } catch (Exception e) {
                    return FormValidation.error("Changelist: " + change + " does not exist.");
                }
            }
            return FormValidation.ok();
View Full Code Here

                    LOGGER.log(Level.FINE, "P4 Where Parsing Error: "+map.get("data"));
                    if(map.get("data")!=null){
                        if(map.get("data").contains("not in client view")){
                            //this is non-fatal, but not sure what to do with it
                        } else {
                            throw new PerforceException("P4 Where Parsing Error: "+map.get("data"));
                        }
                    }
                }
                if(map.get("depotFile") == null || map.get("clientFile") == null || map.get("path") == null){
                    //not a valid mapping for some reason...
                    //possibly because some versions of perforce return the wrong values
                    LOGGER.log(Level.WARNING, "P4 Where returned unexpected output! Check to make sure your perforce client and server versions are up to date!");
                    continue;
                }
                depot = map.get("depotFile");
                workspace = map.get("clientFile");
                filesystem = map.get("path");

                maps.add(new WhereMapping(depot,workspace,filesystem));
            }
        } catch (IOException e) {
            throw new PerforceException("Could not parse Where map.", e);
        }
        return maps;
    }
View Full Code Here

        } 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

    final Counter counter = new Counter();
    counter.setName("");
    if(m.find()) {
                    counter.setValue(Integer.parseInt(m.group(0).trim()));
    } else {
                    throw new PerforceException("Could not get value of counter.\nResponse from perforce was:\n" + sb);
                }
    return counter;
  }
View Full Code Here

      for(String view : label.getViews()) {
        writer.write("\t" + view + "\n");
      }
      writer.write("\n");
    } catch(IOException e) {
      throw new PerforceException("Failed to save label", e);
    }
  }
View Full Code Here

        }
      }
    } catch(Exception e) {
      logger.error("Exception: " + e.getMessage());
      throw new PerforceException("Failed to retrieve changelist.\nResponse from perforce was:\n" + sb, e);
    }
    return change;
  }
View Full Code Here

          out.write("View:\n");
          out.write(" " + workspace.getViewsAsString() + "\n");
      }

    } catch(IOException e) {
      throw new PerforceException("Failed to save workspace", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.tek42.perforce.model.Group

Copyright © 2018 www.massapicom. 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.