org.apache.tools.ant.taskdefs.optional.perforce

Class P4Resolve

public class P4Resolve extends P4Base

UNKNOWN: category="scm"

Method Summary
voidexecute()
execute the p4 resolve
StringgetResolvemode()
returns the resolve mode
booleanisForcetextmode()
If set to true, attempts a textual merge, even for binary files
booleanisMarkersforall()
If set to true, puts in markers for all changes, conflicting or not
booleanisRedoall()
allows previously resolved files to be resolved again
booleanisSimulationmode()
read the simulation mode flag
voidsetForcetextmode(boolean forcetextmode)
If set to true, attempts a textual merge, even for binary files
voidsetMarkersforall(boolean markersforall)
If set to true, puts in markers for all changes, conflicting or not
voidsetRedoall(boolean redoall)
set the redoall flag
voidsetResolvemode(String resolvemode)
values for resolvemode
  • automatic -am
  • force -af
  • safe -as
  • theirs -at
  • yours -ay
voidsetSimulationmode(boolean simulationmode)
sets a flag

Method Detail

execute

public void execute()
execute the p4 resolve

Throws: BuildException if there is a wrong resolve mode specified or no view specified

getResolvemode

public String getResolvemode()
returns the resolve mode

Returns: returns the resolve mode

isForcetextmode

public boolean isForcetextmode()
If set to true, attempts a textual merge, even for binary files

Returns: flag value

isMarkersforall

public boolean isMarkersforall()
If set to true, puts in markers for all changes, conflicting or not

Returns: flag markersforall value

isRedoall

public boolean isRedoall()
allows previously resolved files to be resolved again

Returns: flag indicating whether one wants to allow previously resolved files to be resolved again

isSimulationmode

public boolean isSimulationmode()
read the simulation mode flag

Returns: flag indicating whether one wants just to simulate the p4 resolve operation whithout actually doing it

setForcetextmode

public void setForcetextmode(boolean forcetextmode)
If set to true, attempts a textual merge, even for binary files

Parameters: forcetextmode set the flag value

setMarkersforall

public void setMarkersforall(boolean markersforall)
If set to true, puts in markers for all changes, conflicting or not

Parameters: markersforall flag true or false

setRedoall

public void setRedoall(boolean redoall)
set the redoall flag

Parameters: redoall flag indicating whether one want to allow previously resolved files to be resolved again

setResolvemode

public void setResolvemode(String resolvemode)
values for resolvemode

Parameters: resolvemode one of automatic, force, safe, theirs, yours

setSimulationmode

public void setSimulationmode(boolean simulationmode)
sets a flag

Parameters: simulationmode set to true, lists the integrations which would be performed, without actually doing them.

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.