Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

taskdef problem

Dave Pawson

2008-05-26


Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.