|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Packages | |
---|---|
com.perforce.p4java.ant | |
com.perforce.p4java.ant.tasks | The Perforce tasks implement Perforce commands using the Perforce Java API. |
The Perforce tasks implement Perforce commands using the Perforce Java API. These tasks are intended for build automation with Ant. Note: These tasks are known to work with P4Java 2010.1, JDK 6 and Ant 1.7.0.
The Perforce tasks also served as examples on how to use the Perforce Java API. P4Java is a Java-native API for accessing Perforce SCM services from within Java applications, servlets, plugins, and other Java contexts.
The Perforce task base class takes care of retrieving the required settings for all Perforce tasks. For example, it retrieves the Perforce port, client, user and password from the environment, properties and attributes respectively. The base class also frames the task execution and logs the execution output.
The Perforce server specific base class uses the P4Java ServerFactory class to obtain a IServer interface onto a specific Perforce server at a known network address and port, and connects to this Perforce server through the IServer interface that is returned from the factory. It also logs in to the Perforce server through the IServer's login and associated methods using the specified Perforce user and password. To disconnect from a Perforce server, call the disconnect method on the IServer interface.
The Perforce client specific base class obtains a suitable IClient interface into a Perforce client workspace through the IServer interface's "get client" method.
The following are some of the capabilities of the Perforce tasks:
Please see the individual tasks for details.
PerforceTask
,
ServerTask
,
ClientTask
,
SyncTask
,
ChangeTask
,
EditTask
,
SubmitTask
,
HaveTask
,
LabelTask
,
LabelsyncTask
,
CounterTask
,
ReopenTask
,
RevertTask
,
AddTask
,
DeleteTask
,
IntegrateTask
,
ResolveTask
,
FstatTask
,
ChangesTask
,
Diff2Task
,
FilesTask
,
FixTask
,
GrepTask
,
JobTask
,
JobsTask
,
LockTask
,
UnlockTask
,
MoveTask
,
ShelveTask
,
UnshelveTask
,
@author Perforce
Support
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |