Hi List,
I've complied the Batik ant rasterizer task but when I run
it I get:
ant-build.xml:283: java.lang.NullPointerException
The following is my ant build, target 'doOutputSVG' works,
so my SVG
files are being generated into
'${in.dir}/svg.templates/'.
I'm using the same ant that I built the task with; 'Apache
Ant
version 1.6.2'.
Line 283 = ' <rasterize result="image/png"
destdir="${in.dir}/
svg.templates/">...'
<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.S
AXParserFact
oryImpl" />
<jvmarg value="-
Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apa
che.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=$" />
<arg line="setlocale=$" />
<arg
line="output-root=${in.dir}/svg.templates/"
/>
</java>
</target>
<target name="doRasterizeSVG">
<rasterize result="image/png"
destdir="${in.dir}/svg.templates/">
<fileset dir="${in.dir}/svg.templates">
<include name="**/*.svg" />
</fileset>
</rasterize>
</target>
Many thanks
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help xmlgraphics.apache.org
|