Methods Summary |
---|
public void | execute()execute the p4 integrate
if (change != null) {
P4CmdOpts = "-c " + change;
}
if (this.forceintegrate) {
P4CmdOpts = P4CmdOpts + " -f";
}
if (this.restoredeletedrevisions) {
P4CmdOpts = P4CmdOpts + " -d";
}
if (this.leavetargetrevision) {
P4CmdOpts = P4CmdOpts + " -h";
}
if (this.enablebaselessmerges) {
P4CmdOpts = P4CmdOpts + " -i";
}
if (this.simulationmode) {
P4CmdOpts = P4CmdOpts + " -n";
}
if (this.reversebranchmappings) {
P4CmdOpts = P4CmdOpts + " -r";
}
if (this.propagatesourcefiletype) {
P4CmdOpts = P4CmdOpts + " -t";
}
if (this.nocopynewtargetfiles) {
P4CmdOpts = P4CmdOpts + "-v";
}
String command;
if (branch == null && fromfile != null && tofile != null) {
command = P4CmdOpts + " " + fromfile + " " + tofile;
} else if (branch != null && fromfile == null && tofile != null) {
command = P4CmdOpts + " -b " + branch + " " + tofile;
} else if (branch != null && fromfile != null) {
command = P4CmdOpts + " -b " + branch + " -s " + fromfile + " " + tofile;
} else {
throw new BuildException("you need to specify fromfile and tofile, "
+ "or branch and tofile, or branch and fromfile, or branch and fromfile and tofile ");
}
execP4Command("-s integrate " + command, new SimpleP4OutputHandler(this));
|
public java.lang.String | getBranch()get the branch
return branch;
|
public java.lang.String | getChange()get the changelist number
return change;
|
public java.lang.String | getFromfile()get the from file specification
return fromfile;
|
public java.lang.String | getTofile()get the to file specification
return tofile;
|
public boolean | isEnableBaselessMerges()gets the enablebaselessmerges flag
return enablebaselessmerges;
|
public boolean | isForceIntegrate()gets the forceintegrate flag
return forceintegrate;
|
public boolean | isLeaveTargetRevision()gets the leavetargetrevision flag
return leavetargetrevision;
|
public boolean | isNocopynewtargetfiles()indicates intention to suppress the copying on the local hard disk of new target files.
return nocopynewtargetfiles;
|
public boolean | isPropagatesourcefiletype()returns flag indicating if propagation of source file type is sought
return propagatesourcefiletype;
|
public boolean | isRestoreDeletedRevisions()gets the restoredeletedrevisions flag
return restoredeletedrevisions;
|
public boolean | isReversebranchmappings()returns the flag indicating if reverse branch mappings are sought
return reversebranchmappings;
|
public boolean | isSimulationMode()gets the simulationmode flag
return simulationmode;
|
public void | setBranch(java.lang.String br)sets the branch
this.branch = br;
|
public void | setChange(java.lang.String change)set the changelist number for the operation
this.change = change;
|
public void | setEnableBaselessMerges(boolean setrest)sets the enablebaselessmerges flag
this.enablebaselessmerges = setrest;
|
public void | setForceIntegrate(boolean setrest)sets the forceintegrate flag
this.forceintegrate = setrest;
|
public void | setFromfile(java.lang.String fromf)sets the from file specification
this.fromfile = fromf;
|
public void | setLeaveTargetRevision(boolean setrest)sets the leavetargetrevision flag
this.leavetargetrevision = setrest;
|
public void | setNocopynewtargetfiles(boolean nocopynewtargetfiles)sets nocopynewtargetfiles flag
this.nocopynewtargetfiles = nocopynewtargetfiles;
|
public void | setPropagatesourcefiletype(boolean propagatesourcefiletype)sets flag indicating if one wants to propagate the source file type
this.propagatesourcefiletype = propagatesourcefiletype;
|
public void | setRestoreDeletedRevisions(boolean setrest)sets the restoredeletedrevisions flag
this.restoredeletedrevisions = setrest;
|
public void | setReversebranchmappings(boolean reversebranchmappings)sets the reversebranchmappings flag
this.reversebranchmappings = reversebranchmappings;
|
public void | setSimulationMode(boolean setrest)sets the simulationmode flag
this.simulationmode = setrest;
|
public void | setTofile(java.lang.String tof)sets the to file specification
this.tofile = tof;
|