You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dave Pawson <da...@gmail.com> on 2008/05/26 11:51:20 UTC

taskdef problem

I'm trying to use taskdef (and failing)

 <!-- ================================================ -->
 <!--  (Validate using Jing task) -->
 <!-- ================================================ -->
<path id="jing.classpath">
  <pathelement path="/myjava/jing.jar"/>
</path>
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"
	  classpathref="jing.classpath"/>

 <target name="jing"  description="Validate xincluded file">
   <jing rngfile="${docbook5.home}/rng/docbook.rng"
	 checkid="false"
	 file="nvdlschema.xml"/>
 </target>


If I put the jing.jar file in the ant library it works fine
If I use the taskdef above, specifying a classpathref to the jar, it fails

Any suggestions why please?

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org