I have a script that can lookup and output or write my current release # to a text file. Now the only problem is how do I get this version number into a PHING property.
Right now my PHING target builds build.zip and built.tar, I would like it to build build-1.0.0.zip or whatever the version script decides the current version is. How can I do this? Will I have to create my own "task"?
An alternative approach is to use the outputProperty
attribute on the ExecTask to provide a property in your build file.
<target name="version">
<exec command="cat version.txt" outputProperty="version.number" />
<echo msg="Version: ${version.number}" />
</target>