Methods Summary |
---|
public void | execute()do the work
log("P4Labelsync exec:", Project.MSG_INFO);
if (P4View != null && P4View.length() >= 1) {
P4View = StringUtils.replace(P4View, ":", "\n\t");
P4View = StringUtils.replace(P4View, ";", "\n\t");
}
if (P4View == null) {
P4View = "";
}
if (name == null || name.length() < 1) {
throw new BuildException("name attribute is compulsory for labelsync");
}
if (this.isSimulationmode()) {
P4CmdOpts = P4CmdOpts + " -n";
}
if (this.isDelete()) {
P4CmdOpts = P4CmdOpts + " -d";
}
if (this.isAdd()) {
P4CmdOpts = P4CmdOpts + " -a";
}
execP4Command("-s labelsync -l " + name + " " + P4CmdOpts + " " + P4View,
new SimpleP4OutputHandler(this));
|
public boolean | isAdd()-a flag of p4 labelsync - preserve files which exist in the label,
but not in the current view
return add;
|
public boolean | isDelete()-d flag of p4 labelsync; indicates an intention of deleting from the label
the files specified in the view
return delete;
|
public boolean | isSimulationmode()-n flag of p4 labelsync - display changes without actually doing them
return simulationmode;
|
public void | setAdd(boolean add)-a flag of p4 labelsync - preserve files which exist in the label,
but not in the current view
this.add = add;
|
public void | setDelete(boolean delete)-d flag of p4 labelsync; indicates an intention of deleting from the label
the files specified in the view
this.delete = delete;
|
public void | setName(java.lang.String name)The name of the label; optional, default "AntLabel"
this.name = name;
|
public void | setSimulationmode(boolean simulationmode)-n flag of p4 labelsync - display changes without actually doing them
this.simulationmode = simulationmode;
|