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: help with style task
Date Thu, 12 Dec 2002 17:37:31 GMT
running ant 1.5.1 with optional.jar removed from ANT_HOME/lib.  i have
several projects working with different versions of junit, so i can't have
junit in ANT_HOME/lib.  i've gone through the FAQ and now have optional.jar
in my own lib directory along with junit.  this has been working for quite
some time, and i have had to taskdef all optional and junit tasks.  now,
i've decided to add the style task to the mix, and the FAQ has helped some,
but i seems to behave a bit differently than the junit task.  could this be
that part of the task (XSLTLiason) is in ant.jar and not optional.jar??

Ryan
-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Thursday, December 12, 2002 11:15 AM
To: 'Ant Users List'
Subject: RE: help with style task


Do you have an 'official' release of Ant? How do you start it?

Using ant.bat with only junit.jar in my classpath, on Win2K, JDK 1.4.0_01, I
don't have anything special to use <style> (no taskdef, no nested classpath
in style task). --DD

-----Original Message-----
From: Sonnek, Ryan [mailto:Ryan.Sonnek@bpc.com] 
Sent: Thursday, December 12, 2002 10:47 AM
To: 'Ant Users List'
Subject: help with style task

this is a very active list, so i'm reposting my message with a more accurate
subject.  hopefully someone who's worked with this can point me in the right
direction.  the docs are great, but i've been stuck for quite some time.

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>

--
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>

--
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