You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Jason Lane <ja...@onspeed.com> on 2006/04/07 13:37:46 UTC
Rasterizer task problems
I've successfully built the Rasterizer task but I get the following
error [Apache Ant version 1.6.2]:
doRasterizeSVG:
BUILD FAILED
/Library/WebServer/Documents/onshare/website/trunk/build/ant-
build.xml:280: java.lang.NullPointerException
My ant build.xml is:
<taskdef name="rasterize"
classname="org.apache.tools.ant.taskdefs.optional.RasterizerTask" />
<!-- Content Source Files -->
<property name="in.dir" value="${docbookHome}/xml/${setlocale}/" />
.....
<target name="doOutputSVG">
<java classname="${xslt.processor.class}" fork="yes" dir="$
{in.dir}" failonerror="true">
<classpath refid="xslt.processor.classpath" />
<jvmarg value="-Xmx256m" />
<jvmarg value="-
Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Documen
tBuilderFactoryImpl" />
<jvmarg value="-
Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFact
oryImpl" />
<jvmarg value="-
Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.p
arsers.XIncludeParserConfiguration" />
<arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader" />
<arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader" />
<arg line="-r org.apache.xml.resolver.tools.CatalogResolver" />
<arg line="${website.autolayout}" />
<arg line="${svg.stylesheet}" />
<arg line="setdomain=${domain}" />
<arg line="setlocale=${setlocale}" />
<arg line="output-root=${in.dir}/svg.templates/" />
</java>
</target>
<target name="doRasterizeSVG">
<rasterize result="image/png" destdir="${in.dir}svg.templates/"
dpi="72">
<fileset dir="${in.dir}svg.templates/">
<include name="**/*.svg" />
</fileset>
</rasterize>
</target>
Any pointers most welcome!
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org