import java.io.*; import java.util.*; import com.perforce.api.*; public class CreateClient { public static void main(String[] argv) { /* Please see the Common.java file to see how the environment is being * set up. This is important, but it is common to all the examples. */ Env env = Common.setup(); Client clnt = new Client(env, "test-client"); clnt.setRoot("D:\\TestWorkspace2"); clnt.addView("//guest/david_markley/p4package/...", "//test-client/..."); try { clnt.commit(); } catch (Exception ex) { ex.printStackTrace(); } Utils.cleanUp(); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 5093 | Hari Krishna Dara |
Populating perforce branch. I will be adding p4admin files to it. |
||
//public/perforce/api/java/p4package/examples/CreateClient.java | |||||
#1 | 1149 | David Markley | Added more documentation, a few examples, a cleanUp method, and a server timeout threshold. | ||
//guest/david_markley/p4package/examples/CreateClient.java | |||||
#1 | 1148 | David Markley | Added a few examples and a server connection timeout threshold. |