Search in sources :

Example 1 with EnvironmentType

use of org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.EnvironmentType in project airavata by apache.

the class JSDLUtils method addEnvVariable.

public static EnvironmentType addEnvVariable(JobDefinitionType def, String name, String value) {
    POSIXApplicationType posixApp = getOrCreatePOSIXApplication(def);
    EnvironmentType newEnv = posixApp.addNewEnvironment();
    newEnv.setName(name);
    newEnv.setStringValue(value);
    return newEnv;
}
Also used : EnvironmentType(org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.EnvironmentType) POSIXApplicationType(org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.POSIXApplicationType)

Example 2 with EnvironmentType

use of org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.EnvironmentType in project airavata by apache.

the class JSDLUtils method addEnvVariable.

public static EnvironmentType addEnvVariable(JobDefinitionType def, String name, String value) {
    POSIXApplicationType posixApp = getOrCreatePOSIXApplication(def);
    EnvironmentType newEnv = posixApp.addNewEnvironment();
    newEnv.setName(name);
    newEnv.setStringValue(value);
    return newEnv;
}
Also used : EnvironmentType(org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.EnvironmentType) POSIXApplicationType(org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.POSIXApplicationType)

Aggregations

EnvironmentType (org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.EnvironmentType)2 POSIXApplicationType (org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.POSIXApplicationType)2