use of org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.POSIXApplicationType in project airavata by apache.
the class JSDLUtils method getOrCreatePOSIXApplication.
public static POSIXApplicationType getOrCreatePOSIXApplication(JobDefinitionType value) {
ApplicationType application = getOrCreateApplication(value);
if (getHPCProfileApplication(value) != null) {
// TODO handle: not creating POSIX element if HPCProfile already exists
return getPOSIXApplication(value);
}
if (getPOSIXApplication(value) == null) {
XmlCursor acursor = application.newCursor();
acursor.toEndToken();
acursor.insertElement(POSIX_APPLICATION);
acursor.dispose();
}
return getPOSIXApplication(value);
}
Aggregations