ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Stirling" <scottstirl...@rcn.com>
Subject RE: full stack trace?
Date Wed, 25 Dec 2002 23:58:12 GMT
> I see your point, but would the it then print out the whole stack trace
> when called from the command line - or when executed in a forked jvm (by
> ant)?

Yes to both questions.

Taking the example class from java.lang.Throwable printStackTrace Javadoc
(renamed MyClass to test):

F:\dev\ant>ant
Buildfile: build.xml

main:
     [java] java.lang.NullPointerException
     [java]     at test.mash(test.java:11)
     [java]     at test.crunch(test.java:7)
     [java]     at test.main(test.java:4)
     [java] Exception in thread "main"
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 2 seconds


Using this build.xml:
<project name="test" default="main" basedir=".">
  <target name="main">
    <java classname="test" fork="true"
          classpath="."/>
  </target>
</project>

Scott Stirling



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


Mime
View raw message