agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/model/enumerations/JobArchivePathMacroType.java
/**
     * Resolves all macros in the path, leaving any whose value cannot yet be determined.
     * @param job
     * @param path
     * @return
     */
Resolves all macros in the path, leaving any whose value cannot yet be determined.
@param job
@param path
@return
Resolves all macros in the path leaving any whose value cannot yet be determined . @param job @param path @return
public static String resolveMacrosInPath(Job job, String path) {
        if (StringUtils.isEmpty(path)) return path;
        for (JobArchivePathMacroType macro: JobArchivePathMacroType.values()) {
            String resolvedValue = macro.resolveForJob(job);
            path = StringUtils.replace(path, "${" + macro.name() + "}", resolvedValue);
        }
        return path;
    }
public static String resolveMacrosInPath ( Job job , String path ) { if ( StringUtils . isEmpty ( path ) ) return path ; for ( JobArchivePathMacroType macro : JobArchivePathMacroType . values ( ) ) { String resolvedValue = macro . resolveForJob ( job ) ; path = StringUtils . replace ( path , "${" + macro . name ( ) + "}" , resolvedValue ) ; } return path ; }
Resolves all macros in the path, leaving any whose value cannot yet be determined.
Resolves all macros in the path leaving any whose value cannot yet be determined .