agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/model/scripts/AbstractSubmitScript.java
/**
	 * Resolves any user-defined job variables from the input script against the given string.
	 * This is called as a filter to the {@link BatchQueue#getCustomDirectives()} before 
	 * adding to the batch script.
	 * 
	 * @param wrapperTemplate the template contents from which any job attribute macros will be resolved
	 * @return the wrapper template with all job attribute macros resolved.
	 */
Resolves any user-defined job variables from the input script against the given string.
This is called as a filter to the  BatchQueue#getCustomDirectives() before
adding to the batch script.

@param wrapperTemplate the template contents from which any job attribute macros will be resolved
@return the wrapper template with all job attribute macros resolved.
Resolves any user - defined job variables from the input script against the given string . This is called as a filter to the BatchQueue#getCustomDirectives () before adding to the batch script . @param wrapperTemplate the template contents from which any job attribute macros will be resolved @return the wrapper template with all job attribute macros resolved .
public String resolveMacros(String wrapperTemplate) throws JobMacroResolutionException {
		WrapperTemplateMacroResolver resolver = new WrapperTemplateMacroResolver(getJob(), getExecutionSystem());
		return resolver.resolveJobAttributeMacros(wrapperTemplate);
		return wrapperTemplate;
	}
public String resolveMacros ( String wrapperTemplate ) throws JobMacroResolutionException { WrapperTemplateMacroResolver resolver = new WrapperTemplateMacroResolver ( getJob ( ) , getExecutionSystem ( ) ) ; return resolver . resolveJobAttributeMacros ( wrapperTemplate ) ; }
Resolves any user-defined job variables from the input script against the given string.
Resolves any user - defined job variables from the input script against the given string .
//		for (WrapperTemplateAttributeVariableType macro: WrapperTemplateAttributeVariableType.values()) { //			wrapperTemplate = StringUtils.replace(wrapperTemplate, "${" + macro.name() + "}", macro.resolveForJob(job)); //		} // //		return wrapperTemplate;