p4java

Perforce P4J getting change lists for a directory

Hi, I am trying to get the changelists on a directory using P4J. Here is the snippet I used, P4JServer server = //get a valid server using username/pwd List<P4JFileSpec> fileSpec = P4JFileSpecBuilder.makeFileSpecList(new String[]{"//depot/se/mydir"}); //a valid directory if(P4JFileSpecBuilder.getValidFileSpecs(fileSpec).isEmpty()) { ...

sync via p4java api

What fields should be set in the FileSpec object passed into IClient.sync in the perforce java API? I've set: The pathname passed to the constructor to the abs path/... of the local workspace setClient(myIClient) the action to FileAction.SYNC No exception is thrown, but one IFileSpec comes back in the result, and it complains that t...