<project default="convert" basedir="."> <property name="flashprinter.exe" value="C:\Program Files\Macromedia\FlashPaper 2\FlashPrinter.exe" /> <pathelement location="${basedir}/ant-contrib-1.0b3.jar"/> <sequential> <propertyregex property="filenameMinusExtension" override="yes" input="@{file}" regexp=".*\\([^\\]+)\.pdf" replace="\1" />
Compare the timestamp from the PDF to the FlashPaper, if either PDF is newer, or if the FlashPaper version
--> <sourcefiles> <pathelement path="@{file}" />
<sequential> <exec executable="${flashprinter.exe}"> <arg line=""@{file}" -o "${output.dir}${filenameMinusExtension}.swf"" />
Give some time for FlashPrinter to finish moving on to the next file to convert.
and you might need to adjust accordingly. --> <sleep seconds="30" />