Consider using the output
attribute to Ant's <exec ..>
task to write a properties file instead. Then you can use the <properties file="...">
method to read it in Ant, and can load it like a normal properties file when running in your IDE.
Good for you for not using the KeywordsExtension for this. It's a horrible solution in a DVCS world.