rsp.sendRedirect(".");
}
public void tagBuild(String tagname, String description, String owner) throws IOException, InterruptedException {
Label label = new Label();
label.setName(tagname);
label.setDescription(description);
label.setRevision(new Integer(changeNumber).toString());
if(owner!=null && !owner.equals("")) label.setOwner(owner);
PerforceSCM scm = getSCM();
if(scm != null){
depot.setPassword(scm.getDecryptedP4Passwd(this.getBuild().getProject(), this.getBuild().getBuiltOn()));
}
//Only take the depot paths and add them to the view.
List<String> viewPairs = PerforceSCM.parseProjectPath(view, "workspace");
for (int i=0; i < viewPairs.size(); i+=2){
String depotPath = viewPairs.get(i);
label.addView(depotPath);
}
try {
depot.getLabels().saveLabel(label);
} catch(PerforceException e) {
e.printStackTrace();