import java.io.*;
import java.util.*;
import com.perforce.api.*;
public class GetGroup {
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();
Group g = new Group("admin_group");
// You should use ArrayList for better performce; these are old exmaples
Vector users;
try {
g.sync();
users=g.getUsers(); //may not pull user information from sub groups
Enumeration en = users.elements();
while(en.hasMoreElements()){
System.out.println(en.nextElement());
}
} catch (Exception ex) {
ex.printStackTrace();
}
Utils.cleanUp();
}
}