import java.util.Enumeration; import com.perforce.api.*; public class ListUsers { public static void main(String[] argv) { User u; /* 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(); try { Debug.setDebugLevel(Debug.NOTICE); Enumeration en = User.getUsers(env); while (en.hasMoreElements()) { u = (User)en.nextElement(); System.out.println("USER: "+u.getId()); } } catch (Exception ex) { ex.printStackTrace(); } Utils.cleanUp(); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 4060 | Paul Krause | unused imports | ||
#1 | 1712 | Paul Krause | sync to markley latest p4package | ||
//guest/david_markley/p4package/examples/ListUsers.java | |||||
#1 | 1332 | David Markley |
Added more example code. Added the Counter class. Corrected the filelog methods for the FileEntry class. |