xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Lane <ja...@onspeed.com>
Subject Rasterizer task problems
Date Fri, 07 Apr 2006 11:37:46 GMT
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


Mime
View raw message