On 03/08/2012 03:36 AM, Dan Tran wrote: > Hi experimenting with ditac + renderx to generate my pdf ( thru my > ditac-maven-plugin) and it seems when a ditac cannot create the pdf > for somereason, ditac exit code is none zero. and therefor my > automation build cant detect failure. > > Do you see what I see? > > here is the log > > [DEBUG] cmd.exe /X /C > "C:\Users\dan.tran\dev\ll\mc\mc-docs-with-ditac\.external-resources\ditac-2_1_0\bin\ditac.bat > -xep "c:\Program Files\RenderX\XEP\xep.bat" > C:\Users\dan.tran\dev\ll\mc\mc-docs-with-ditac\target\ditac\pdf\admin-guide.pdf > C:\Users\dan.tran\dev\ll\mc\mc-docs-with-ditac\src\main\dita\admin-guide\admin-guide.ditamap" > ditac: ERROR: [error] Attribute 'space-before.minimum' cannot have a > value of "". > ditac: ERROR: > ditac: ERROR: Parse error: Invalid XSL FO source > 'file:/C:/Users/dan.tran/dev/ll/mc/mc-docs-with-ditac/target/ditac/pdf/admin-guide.fo': > 1 error found during validation > [INFO] > [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ mc-docs --- > > Since my maven plugin does not throws a commandline excption, it means > ditac.bat exit code is 0, instead of some other number > >
We have re-checked the fact that ditac.bat always returns a correct exit code: 0 means success, greater than 0 means failure. In your case, ditac invokes xep.bat which probably returns an incorrect exit code, hence your problem. FYI, an error message like "attribute 'space-before.minimum' cannot have a value of """ is almost certainly a *false* error message triggered by this XEP bug: "renderx #22766". Simple workarounds are explained here (search for "renderx #22766"): http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html -- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

