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();
}
}