public GroovyActionBuilder template(Resource scriptTemplate, Charset charset) {
		try {
            action.setScriptTemplate(FileUtils.readToString(scriptTemplate, charset));
        } catch (IOException e) {
            throw new CitrusRuntimeException("Failed to read script template file", e);
        }
		return this;
	}
public GroovyActionBuilder template ( Resource scriptTemplate , Charset charset ) { try { action . setScriptTemplate ( FileUtils . readToString ( scriptTemplate , charset ) ) ; } catch ( IOException e ) { throw new CitrusRuntimeException ( "Failed to read script template file" , e ) ; } return this ; }
Use a script template resource.
@param scriptTemplate the scriptTemplate to set
@param charset