ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: help with style task
Date Thu, 12 Dec 2002 17:15:15 GMT
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 [] 
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"
     classpath="${ant-optional.path};${xalan.path}" />
    <echo message="convert xml report to html." />
    <style in="${project.doc.checkstyle}/checkstyle.xml"
        <pathelement location="${ant-optional.path}" />
        <pathelement location="${xalan.path}" />

the error i get now is:

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


-----Original Message-----
From: Jacob Kjome []
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.


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:
SR> For additional commands, e-mail:

Best regards,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message