[xep-support] Ant Task ClassCastException

Kevin Ross Kevin.Ross at iVerticalLeap.com
Tue Apr 22 16:19:45 PDT 2003


I get a java.lang.ClassCastException when trying to use the ant task.  I
have tried multiple variations on the classpaths, with no luck.  FYI- I
am a moderately experienced ANT user, so it seems to me that my paths
are correct.  I have no source to the task, and there is no stack trace,
so I can't possibly have a clue what is wrong.
 
The complaint is on the call to <xep>
 
I am using:
 
XEP331
xep3ant100
Apache Ant version 1.5.1 compiled on October 2 2002
JDK 1.4.1
WIN XP PRO
 
Any thoughts are appreciated,
 
Kevin Ross
 
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project SYSTEM "http://iverticalleap.com/build.core/ant.dtd">
<project name="jacobson" basedir="."
default="printWarehouseWorksheetSummary">
       <property name="date" value=""/>
       <property environment="env"/>
       <property name="home.xep" value="${env.XEP_HOME}"/>
       <property name="home.jacobson" value="${env.JACOBSON_HOME}"/>
       <property name="dir.print" value="${home.jacobson}/bin/print"/>
       <property name="print.xml" value="${dir.print}/input.xml"/>
       <property name="print.pdf" value="${dir.print}/output.pdf"/>
       <property name="print.xsl"
value="${home.jacobson}/templates/batch/batchRouteAndPick.xsl"/>
       <path id="xep-classpath">
             <fileset dir="${home.xep}/lib">
                    <include name="*.jar"/>
             </fileset>
       </path>
       <taskdef name="xep" classname="com.renderx.ant.XEPTask"
classpathref="xep-classpath"/>
       <!--
       <taskdef name="xep" classname="com.renderx.ant.XEPTask"
classpath="${home.xep}/lib/XEPTask.jar"/>
       -->
       <target name="init">
             <tstamp/>
             <delete file="${print.xml}"/>
             <delete file="${print.pdf}"/>
             <mkdir dir="${dir.print}"/>
       </target>
       <target name="transform-only">
             <echo message="Creating ${print.pdf}..."/>
             
             <xep in="${print.xml}" out="${print.pdf}"
style="${print.xsl}" format="PDF">
                    <classpath refid="xep-classpath"/>
                    <sysproperty key="com.renderx.xep.ROOT"
value="${home.xep}"/>
                    <sysproperty key="com.renderx.xep.VALIDATE"
value="false"/>
             </xep>
             
             <echo message="Done creating pdf."/>
       </target>
</project>
 
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list