import java.io.*;
import java.util.*;
import com.perforce.api.*;
public class GetJob {
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();
Job job;
Change[] cls;
// You should use ArrayList for better performce; these are old exmaples
Vector files;
int i=0;
try {
job = new Job("MY_FAVORITE_JOB");
cls=job.getChanges();
for(i=0; i<cls.length; i++) {
System.out.println(cls[i].getNumber());
}
} catch (Exception ex) {
System.out.println(ex.getMessage());
ex.printStackTrace();
}
Utils.cleanUp();
}
}