Simple Tests for P4Java Methods Download dist/JenkinsOps.zip and unzip. This will give you two files: JenkinsOps.jar lib/p4java-2018.1.1638495-bundle.jar Tests: 1) Use Java native methods to create a symlink java -cp JenkinsOps.jar test.Link <src-file> <link-name> 2) Use P4Java to sync (useful for testing a sync of a single file or a bunch) java -cp JenkinsOps.jar test.Sync <p4java-uri> <client> <user> <password> <filespec> Provide a zero length password argument to use an existing ticket 3) Use P4Java to reconcile. This does a preview "sync -n -a -e -d". java -cp JenkinsOps.jar test.Reconcile <p4java-uri> <client> <user> <password> <filespec> Provide a zero length password argument to use an existing ticket
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 28709 | Joel Brown |
Allow setting character encoding (charset) with syncs with the Java System Property -Dcharset=<value> |
||
#4 | 28442 | Joel Brown | Additional clarifications for running the tests. | ||
#3 | 27670 | Joel Brown |
Add to Sync and Streaming Sync the ability to not populate the have table java -Dhave=false -cp JenkinsOps.jar .... |
||
#2 | 26533 | Joel Brown |
Add Streaming Sync test. This will use a streaming sync call similar to what P4 Plugin for Jenkins uses. |
||
#1 | 25636 | Joel Brown | Simple P4Java methods to sync and reconcile. |