我想解决一个fop问题,我在想从缺省日志记录到调试可能会有所帮助。 fop文档说我需要传递messagelevel =“debug”,但是我的ant脚本语法的每个变体都失败了。我知道这更多是一个蚂蚁问题,但我想知道是否有人遇到过这个问题。这里是我的非工作代码:在蚂蚁脚本中强制执行FOP调试模式的语法
<macrodef name="fop">
<attribute name="in" />
<attribute name="out" />
<sequential>
<java classname="org.apache.fop.cli.Main" fork="true"
failonerror="true">
<arg line="-fo @{in}" />
<arg line="-pdf @{out} messagelevel="debug" />
<arg line="-c ${FopConfig}" />
<classpath>
<pathelement location="${FopBuild}" />
<pathelement location="${FopAvalon}" />
<pathelement location="${FopBatik}" />
<pathelement location="${FopCommonsIo}" />
<pathelement location="${FopCommonsLogging}" />
<pathelement location="${FopFopHyph}" />
<pathelement location="${FopJaiCodec}" />
<pathelement location="${FopJaiCore}" />
<pathelement location="${FopSerializer}" />
<pathelement location="${FopXalan}" />
<pathelement location="${FopXerces}" />
<pathelement location="${FopXmlApis}" />
<pathelement location="${FopXmlApisExt}" />
<pathelement location="${FopXmlGraphics}" />
</classpath>
</java>
</sequential>
</macrodef>
I've also tried this, with the arg as a separate line:
<macrodef name="fop">
<attribute name="in" />
<attribute name="out" />
<sequential>
<java classname="org.apache.fop.cli.Main" fork="true"
failonerror="true">
<arg line="-fo @{in}" />
<arg line="-pdf @{out} />
<arg line"messagelevel="debug"" />
<arg line="-c ${FopConfig}" />
<classpath>
<pathelement location="${FopBuild}" />
<pathelement location="${FopAvalon}" />
<pathelement location="${FopBatik}" />
<pathelement location="${FopCommonsIo}" />
<pathelement location="${FopCommonsLogging}" />
<pathelement location="${FopFopHyph}" />
<pathelement location="${FopJaiCodec}" />
<pathelement location="${FopJaiCore}" />
<pathelement location="${FopSerializer}" />
<pathelement location="${FopXalan}" />
<pathelement location="${FopXerces}" />
<pathelement location="${FopXmlApis}" />
<pathelement location="${FopXmlApisExt}" />
<pathelement location="${FopXmlGraphics}" />
</classpath>
</java>
</sequential>
</macrodef>
I'm sure I'm not seeing something simple.
当你说你不同的尝试都失败了,那是什么意思?描述您看到的错误消息或不良行为。 – skrrgwasme 2014-10-08 19:04:32