I want to set a file name with a date and time attached to it, so I want to create a file called behat-20140913-195915.html , however the example below sets the name as behat-yyyymmdd-hhiiss.html . Does anyone know a solution to the problem?
I followed in this example
Note : these two do not work either: ${DSTAMP} ${TSTAMP}
<?xml version="1.0" encoding="UTF-8"?> <project name="Sport" default="build-default" basedir="."> <tstamp> <format property="TODAY_MY" pattern="yyyymmdd-hhiiss" locale="en,UK" /> </tstamp> <target name="build" description="Runs everything in order ..." depends="behat-bdd" /> <target name="behat"> <echo msg="Running Behat tests ..." /> <exec logoutput="true" checkreturn="true" command="bin/behat -f progress --format html --out ${dir-report}/behat-${TODAY_MY}.html" dir="./" /> </target> </project>
source share