From: Kevin Ross (Kevin.Ross@iVerticalLeap.com)
Date: Wed Apr 23 2003 - 08:32:10 PDT
>>By the way, in XEP Ant Task documentation it is stated as a first step
>>of configuration. :-)
I can read, thanks ;)
Since the client administrator with little knowledge of Java is
deploying this package, I am trying to make the installation steps as
few/simple as possible, otherwise I have to spend time supporting the
installation process, time and time again.
Is there a reason why the <taskdef> does not work with a @classpathref
in this case? @see http://ant.apache.org/manual/CoreTasks/taskdef.html
Using this method of throwing all jars for all new tasks in the ANT
environment seems quite intrusive and unnecessary. If I had to do this
with each new taskdef for each script, the ANT lib directory would be
crowded.
This script defines <xep> and provides a valid classpath. My question
is: why doesn't my script work with your ANT task when it has with
others?
-Kevin
-----Original Message-----
From: owner-xep-support@www.renderx.com
[mailto:owner-xep-support@www.renderx.com] On Behalf Of Alexander
Peshkov
Sent: Wednesday, April 23, 2003 7:58 AM
To: Kevin Ross
Subject: Re: [xep-support] Ant Task ClassCastException
Hello Kevin,
Just add XEPTask.jar to the Ant CLASSPATH and the problem will gone.
I mean CLASSPATH of the environment where Ant is being executed.
By the way, in XEP Ant Task documentation it is stated as a first step
of configuration. :-)
Best regards,
Alexander Peshkov mailto:peshkov@renderx.com
RenderX
KR> I get a java.lang.ClassCastException when trying to use the ant
task. I
KR> have tried multiple variations on the classpaths, with no luck.
FYI- I
KR> am a moderately experienced ANT user, so it seems to me that my
paths
KR> are correct. I have no source to the task, and there is no stack
trace,
KR> so I can't possibly have a clue what is wrong.
KR> The complaint is on the call to <xep>
KR> I am using:
KR> XEP331
KR> xep3ant100
KR> Apache Ant version 1.5.1 compiled on October 2 2002
KR> JDK 1.4.1
KR> WIN XP PRO
KR> Any thoughts are appreciated,
KR> Kevin Ross
KR> <?xml version="1.0" encoding="UTF-8"?>
KR> <!DOCTYPE project SYSTEM
"http://iverticalleap.com/build.core/ant.dtd">
KR> <project name="jacobson" basedir="."
KR> default="printWarehouseWorksheetSummary">
KR> <property name="date" value=""/>
KR> <property environment="env"/>
KR> <property name="home.xep" value="${env.XEP_HOME}"/>
KR> <property name="home.jacobson" value="${env.JACOBSON_HOME}"/>
KR> <property name="dir.print"
value="${home.jacobson}/bin/print"/>
KR> <property name="print.xml" value="${dir.print}/input.xml"/>
KR> <property name="print.pdf" value="${dir.print}/output.pdf"/>
KR> <property name="print.xsl"
KR> value="${home.jacobson}/templates/batch/batchRouteAndPick.xsl"/>
KR> <path id="xep-classpath">
KR> <fileset dir="${home.xep}/lib">
KR> <include name="*.jar"/>
KR> </fileset>
KR> </path>
KR> <taskdef name="xep" classname="com.renderx.ant.XEPTask"
KR> classpathref="xep-classpath"/>
KR> <!--
KR> <taskdef name="xep" classname="com.renderx.ant.XEPTask"
KR> classpath="${home.xep}/lib/XEPTask.jar"/>
KR> -->
KR> <target name="init">
KR> <tstamp/>
KR> <delete file="${print.xml}"/>
KR> <delete file="${print.pdf}"/>
KR> <mkdir dir="${dir.print}"/>
KR> </target>
KR> <target name="transform-only">
KR> <echo message="Creating ${print.pdf}..."/>
KR> <xep in="${print.xml}" out="${print.pdf}"
KR> style="${print.xsl}" format="PDF">
KR> <classpath refid="xep-classpath"/>
KR> <sysproperty key="com.renderx.xep.ROOT"
KR> value="${home.xep}"/>
KR> <sysproperty key="com.renderx.xep.VALIDATE"
value="false"/>>
KR> </xep>
KR> <echo message="Done creating pdf."/>
KR> </target>
KR> </project>
KR> -------------------
KR> (*) To unsubscribe, send a message with words 'unsubscribe
xep-support'
KR> in the body of the message to majordomo@renderx.com from the address
KR> you are subscribed from.
KR> (*) By using the Service, you expressly agree to these Terms of
Service http://www.renderx.com/tos.html
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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
This archive was generated by hypermail 2.1.5 : Wed Apr 23 2003 - 07:22:21 PDT