ndw / xmlcalabash1

XML Calabash, an XProc processor
http://xmlcalabash.com/
108 stars 41 forks source link

ant task failure leaves empty file #168

Open alexmilowski opened 10 years ago

alexmilowski commented 10 years ago

When the pipeline fails to run (i.e., the pipeline is invalid), the file specified by "out" always exists but is empty. I expect the output file to be deleted.

For example,

<c:calabash in="syllabus.xhtml" out="${web.dir}/index.xhtml" pipeline="wrapper.xpl"/>

If the 'wrapper.xpl' has a syntax error, the '${web.dir}/index.xhtml' will still exist.

MenteaXML commented 10 years ago
  1. This feature was added after my original pull request.
  2. If the file existed before the failing pipeline run, should the old file be left unchanged or deleted?