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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to