Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 18526 invoked from network); 12 Dec 2008 11:30:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2008 11:30:06 -0000 Received: (qmail 72515 invoked by uid 500); 12 Dec 2008 11:30:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 72228 invoked by uid 500); 12 Dec 2008 11:30:13 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 72217 invoked by uid 99); 12 Dec 2008 11:30:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 03:30:12 -0800 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of prashant@pramati.com does not designate 196.12.47.8 as permitted sender) Received: from [196.12.47.8] (HELO mail.pramati.com) (196.12.47.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 11:29:51 +0000 Received: from localhost (unknown [127.0.0.1]) by mail.pramati.com (Postfix) with ESMTP id 06924778346 for ; Fri, 12 Dec 2008 11:25:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at pramati.com Received: from mail.pramati.com ([127.0.0.1]) by localhost (mail.pramati.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7w7xR49flyfl for ; Fri, 12 Dec 2008 16:55:00 +0530 (IST) Received: from [192.168.1.54] (prashant-r.pramati.com [192.168.1.54]) by mail.pramati.com (Postfix) with ESMTP id 2BAE17782FE for ; Fri, 12 Dec 2008 16:55:00 +0530 (IST) Message-ID: <49424CF2.7070001@pramati.com> Date: Fri, 12 Dec 2008 17:07:22 +0530 From: Prashant Reddy User-Agent: Thunderbird 2.0.0.14 (X11/20080502) MIME-Version: 1.0 To: Ant Users List Subject: Re: JUnit Report (Please help me, i am trying this from past two weeks) References: <28b4ab580812120110v5276bcd5k4957b3ec6b0007e1@mail.gmail.com> <4942433C.10706@talktalk.net> <28b4ab580812120322l6b23ea8ekb76ee4558a6712b8@mail.gmail.com> In-Reply-To: <28b4ab580812120322l6b23ea8ekb76ee4558a6712b8@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Phani Kumar wrote: > I removed from > target and test runs fine, i got result.xml file .. but could not able to > get the reports.. is there anything wrong in this report Target code? > i have put the jar file outside of Ant\lib still getting same result > i am using jdk 15 and Ant 1.7, installed xalan also > Try using JDK 1.6. Run ant -diagnostics after this to make sure ant picking 1.6 version and that Xalan implementation is also picked from Sun JDK. > below is the result of my build.xml also u can find the latest build.xml > > C:\Test1>ant -f build.xml > Buildfile: build.xml > > init: > [mkdir] Created dir: C:\Test1\build > [mkdir] Created dir: C:\Test1\reports > [mkdir] Created dir: C:\Test1\reports\html > > compile: > [javac] Compiling 1 source file to C:\Test1\build > > test: > [junit] Running NewTest > [junit] Testsuite: NewTest > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 67.229 sec > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 67.229 sec > > [junit] Testcase: testNew took 66.468 sec > > report: > > BUILD FAILED > java.lang.NoSuchMethodError: > org.apache.tools.ant.taskdefs.TempFile.bindToOwner(Lorg/apache/tools/ant/Task;)V > > Total time: 1 minute 25 seconds > C:\Test1> > > build.xml > ====== > > > simple example build file > > > > > > > > > > > > > > > > > description="compile the source " > > > > > > description="runs all junit test cases" > > > > > > > > todir="${reports}"> > > > > > > description="Generates JUnit HTML report" > > > > > > > styledir="org\apache\tools\ant\taskdefs\optional\junit\xsl"/> > > > > > description="clean up" > > > > > > > > > On Fri, Dec 12, 2008 at 4:25 PM, Mark Salter wrote: > > >> Phani Kumar wrote: >> >> >>> I am trying to generate html report through ant build.xml file, in that >>> process i am able to run my test successfully but it fails to generate >>> >> html >> >>> report and it giving me error "java.lang.NoSuchMe >>> thodError:org.apache.tools. ant.types. resources. Resources. >>> dieOnCircularRef erence()V" >>> >> This looks to me that you have a circular reference somewhere in your >> processing. >> >>> i am giving my build.xml file below.. please let me know where did i went >>> wrong..and with what changes it works successfully >>> >> Which task is failing please? >> >> >>> >>> >> Using ${ to indicate a variable when an absolute path is given looks >> very odd to me, but could it cause this problem? >> >> So more people can consider helping... >> >> ...Could you post:- >> - the full stack trace (copy/paste), >> - any messages issued by ant - there must be some? >> >> >> Also take a look at the verbose output from ant -verbose, you might find >> something useful there. >> >> You might also - if you have a spare second - take a quick look at :- >> >> www.catb.org/~esr/faqs/smart-questions.html >> >> As you have already spent time on this over the last two weeks, it is >> probably worth spending a bit more so you can pose a smart question, >> which may in turn get you the answer you need. >> >> -- >> Mark >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org