|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.optional.perforce.P4Base org.apache.tools.ant.taskdefs.optional.perforce.P4Integrate
public class P4Integrate
Integrate file(s).
P4Change should be used to obtain a new changelist for P4Integrate,
although P4Integrate can open files to the default change,
P4Submit cannot yet submit to it.
Example Usage:
<p4integrate change="${p4.change}"
fromfile="//depot/project/dev/foo.txt" tofile="//depot/project/main/foo.txt" />
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.optional.perforce.P4Base |
---|
failOnError, P4Client, P4CmdOpts, P4Opts, P4Port, P4User, P4View, shell, util |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
P4Integrate()
|
Method Summary | |
---|---|
void |
execute()
execute the p4 integrate |
java.lang.String |
getBranch()
get the branch |
java.lang.String |
getChange()
get the changelist number |
java.lang.String |
getFromfile()
get the from file specification |
java.lang.String |
getTofile()
get the to file specification |
boolean |
isEnableBaselessMerges()
gets the enablebaselessmerges flag |
boolean |
isForceIntegrate()
gets the forceintegrate flag |
boolean |
isLeaveTargetRevision()
gets the leavetargetrevision flag |
boolean |
isNocopynewtargetfiles()
indicates intention to suppress the copying on the local hard disk of new target files. |
boolean |
isPropagatesourcefiletype()
returns flag indicating if propagation of source file type is sought |
boolean |
isRestoreDeletedRevisions()
gets the restoredeletedrevisions flag |
boolean |
isReversebranchmappings()
returns the flag indicating if reverse branch mappings are sought |
boolean |
isSimulationMode()
gets the simulationmode flag |
void |
setBranch(java.lang.String br)
sets the branch |
void |
setChange(java.lang.String change)
set the changelist number for the operation |
void |
setEnableBaselessMerges(boolean setrest)
sets the enablebaselessmerges flag |
void |
setForceIntegrate(boolean setrest)
sets the forceintegrate flag |
void |
setFromfile(java.lang.String fromf)
sets the from file specification |
void |
setLeaveTargetRevision(boolean setrest)
sets the leavetargetrevision flag |
void |
setNocopynewtargetfiles(boolean nocopynewtargetfiles)
sets nocopynewtargetfiles flag |
void |
setPropagatesourcefiletype(boolean propagatesourcefiletype)
sets flag indicating if one wants to propagate the source file type |
void |
setRestoreDeletedRevisions(boolean setrest)
sets the restoredeletedrevisions flag |
void |
setReversebranchmappings(boolean reversebranchmappings)
sets the reversebranchmappings flag |
void |
setSimulationMode(boolean setrest)
sets the simulationmode flag |
void |
setTofile(java.lang.String tof)
sets the to file specification |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.perforce.P4Base |
---|
execP4Command, execP4Command, getErrorMessage, getInError, init, setClient, setCmdopts, setErrorMessage, setFailonerror, setGlobalopts, setInError, setPort, setUser, setView |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public P4Integrate()
Method Detail |
---|
public java.lang.String getChange()
public void setChange(java.lang.String change)
change
- An existing changelist number to assign files to; optional
but strongly recommended.public java.lang.String getFromfile()
public void setFromfile(java.lang.String fromf)
fromf
- the from file specificationpublic java.lang.String getTofile()
public void setTofile(java.lang.String tof)
tof
- the to file specificationpublic java.lang.String getBranch()
public void setBranch(java.lang.String br)
br
- the name of the branch to usepublic boolean isRestoreDeletedRevisions()
public void setRestoreDeletedRevisions(boolean setrest)
setrest
- value chosen for restoredeletedrevisionspublic boolean isForceIntegrate()
public void setForceIntegrate(boolean setrest)
setrest
- value chosen for forceintegratepublic boolean isLeaveTargetRevision()
public void setLeaveTargetRevision(boolean setrest)
setrest
- value chosen for leavetargetrevisionpublic boolean isEnableBaselessMerges()
public void setEnableBaselessMerges(boolean setrest)
setrest
- value chosen for enablebaselessmergespublic boolean isSimulationMode()
public void setSimulationMode(boolean setrest)
setrest
- value chosen for simulationmodepublic boolean isReversebranchmappings()
public void setReversebranchmappings(boolean reversebranchmappings)
reversebranchmappings
- flag indicating if reverse branch mappings are soughtpublic boolean isPropagatesourcefiletype()
public void setPropagatesourcefiletype(boolean propagatesourcefiletype)
propagatesourcefiletype
- set it to true if you want to change the type of existing target files
according to type of source file.public boolean isNocopynewtargetfiles()
public void setNocopynewtargetfiles(boolean nocopynewtargetfiles)
nocopynewtargetfiles
- set it to true to gain speed in integration by not copying on
the local Perforce client new target filespublic void execute() throws BuildException
execute
in class Task
BuildException
- if there are missing parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |