ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sonnek, Ryan" <Ryan.Son...@bpc.com>
Subject RE: style task InvocationTargetException
Date Wed, 11 Dec 2002 19:57:41 GMT
can't fork the VM with style.  i've looked through the mail archive, and
went through the FAQ on using the JUnit and style task w/o having
optional.jar in ANT_HOME.  i've had junit working fine for monthes this way,
and now i'd like to add style for checkstyle.  after going through the docs
again, i remembered that i have to taskdef the style task, but it's not
quite there.  i think i'm closer, but there's something not quite right
about it.  here's my target now:

    <taskdef name="style"
     classname="org.apache.tools.ant.taskdefs.XSLTProcess" 
     classpath="${ant-optional.path};${xalan.path}" />
     
    <echo message="convert xml report to html." />
    <style in="${project.doc.checkstyle}/checkstyle.xml"
out="${project.doc.checkstyle}/checkstyle.html"
style="${project.doc.checkstyle}/checkstyle.xsl">
      <classpath>
        <pathelement location="${ant-optional.path}" />
        <pathelement location="${xalan.path}" />
      </classpath>
    </style>

the error i get now is:
java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/optional/TraXLiaison

if i specify TraxLiason as the taskdef classname, i get an error as well.
any help is greatly appreciated!

Ryan

-----Original Message-----
From: Jacob Kjome [mailto:hoju@visi.com]
Sent: Wednesday, December 11, 2002 1:46 PM
To: Ant Users List
Subject: Re: style task InvocationTargetException


Hello Ryan,

You might need to fork the VM.  Is there an option for forking in the
<style> task?  If so, use it and see what happens.

Jake

Wednesday, December 11, 2002, 1:33:04 PM, you wrote:

SR> does anyone know what this error message means?
SR> using ant 1.5.1 w/ xalan2.4.1

SR> [style] C:/brown_dev/srcroot/bcs/doc/checkstyle/checkstyle.xsl:272:65:
SR> Warning! java.lang.reflect.InvocationTargetException Cause:
SR> java.lang.reflect.InvocationTargetException

SR> Ryan

SR> --
SR> To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
SR> For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


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

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


Mime
View raw message