"(directory=" + execDir + ")" +
"(stdout=" + stdOut + ")" +
"(stderr=" + stdErr + ")";
// create a Gram Job
GramJob theJob = new GramJob(theRSL);
// if a proxy is passed via the typeMap, use it
String proxyPath = properties.getString("X509_USER_PROXY", "None");
if(!proxyPath.equals("None")) {
File f = new File(proxyPath);
byte [] data = new byte[(int) f.length()];
FileInputStream in = new FileInputStream(f);
// read in the credential data
in.read(data);
in.close();
ExtendedGSSManager manager =
(ExtendedGSSManager) ExtendedGSSManager.getInstance();
GSSCredential proxy =
manager.createCredential(data,
ExtendedGSSCredential.IMPEXP_OPAQUE,
GSSCredential.DEFAULT_LIFETIME,
null, // use default mechanism - GSI
GSSCredential.INITIATE_AND_ACCEPT);
theJob.setCredentials(proxy);
}
// request execution of the job
boolean NOT_BATCH = false;
boolean NOT_LIMITED = false;