A good example of where you may need this is if you programmatically write a file to the target folder, and then you can read it like this: * def payload = read('file:target/large.xml') To summarize the possible prefixes: PrefixDescription classpath: relative to the classpath, ...