In ant you can do something like:
<property name='version' value='${some.fake.version}' <shellscript shell='bash' dir='${build.dir}'> echo 'some shell cmds' df -h ls * svn export http://svn.org/somedir </shellscript>
Okay, that shell script doesn’t do anything, I know, but how would I the property ‘version’ from within that shellscript?
I know you can do all of the above in Java scripting which is better than most uses, but in the real script I’m doing a ton of svn commands which I’ll have to shell out for anyway.
According to the shellscript documentation:
So you can use the ${variable} notation: