Re: NoSuchMethodException using ant junit task against junit 5 5.3.1

2018-10-03 Thread Jaikiran Pai
Hello Dave, Can you add some details like what jars (especially the ones that contain the Ant JUnit task classes) are present in the classpath? An output of ant -v might also be useful. There was an unintentional change in one of 1.10.x releases which affected the signature of the clone

NoSuchMethodException using ant junit task against junit 5 5.3.1

2018-10-03 Thread Dave Brosius
I am running ant 1.10.5 against the 5.3.1/1.3.1 of junit 5 and getting java.lang.NoSuchMethodError: org.apache.tools.ant.types.CommandlineJava.clone()Lorg/apache/tools/ant/types/CommandlineJava; Anyone know what i'm missing? It works fine with 5.2.0/1.2.0. -- ---

Ant Junit ignore annotation @ContextConfiguration

2011-12-20 Thread 叶伟平
ationContextAware { ... } It works fine with Eclipse, but when I run TestLoginAction in Ant-Junit, it fails. The spring configure files(applicationContext-dao.xml ...) are not loaded. It seem that the "@ContextConfigurat

RE: Apache Ant JUnit XML Schema

2011-02-07 Thread Gary Gregory
> Sent: Monday, February 07, 2011 15:17 > To: user@ant.apache.org; d...@ant.apache.org > Subject: Apache Ant JUnit XML Schema > > Hi, > > I've been looking for a schema for the XML output produced by the JUnit and > JUnitReport tasks. Google couldn't find it for me, so

Re: Apache Ant JUnit XML Schema

2011-02-07 Thread Tom Howard
Hi Gary, For better re-usability, you might consider adding a license (The Apache License v2.0 for example, see http://www.apache.org/licenses/LICENSE-2.0.html) in a comment at the top of your schema. I've already placed the license information at xs:schema/xs:annotation/xs:documentation

Apache Ant JUnit XML Schema

2011-02-07 Thread Tom Howard
Hi, I've been looking for a schema for the XML output produced by the JUnit and JUnitReport tasks. Google couldn't find it for me, so I've created one. You can get if from http://windyroad.org/2011/02/07/apache-ant-junit-xml-schema/ Hopefully someone else might find it u

Apache Ant JUnit XML Schema

2011-02-07 Thread Tom Howard
Hi, I've been looking for a schema for the XML output produced by the JUnit and JUnitReport tasks. Google couldn't find it for me, so I've created one. You can get if from http://windyroad.org/2011/02/07/apache-ant-junit-xml-schema/ Hopefully someone else might find it u

[RESOLVED] Re: Trying to get Ant + JUnit working peaceably

2010-06-06 Thread Steven Harms
I went back to my /usr/local/src/apache-ant 1. Used the fetch.xml script to retrieve all the 3rd party components and put them into lib/optional 2. Re-built ant 3. Verified that $ANTDIR/lib/optional had ant-junit in there 4. jar tf ant-junit ... it was BIG this time and included JUnitTask

Re: Trying to get Ant + JUnit working peaceably

2010-06-05 Thread Steven Harms
Shawn, Thanks for your suggestions and for your prompt reply. > The junit jar is responsible for junit itself, NOT the ability to run junit > from ant.  In order to run junit > from ant, you also need the ant-junit.jar > in the $ANTHOME/lib directory.  This should be part of > the normal instal

RE: Trying to get Ant + JUnit working peaceably

2010-06-05 Thread Shawn Castrianni
Shawn Castrianni -Original Message- From: Steven Harms [mailto:steven.ha...@gmail.com] Sent: Saturday, June 05, 2010 5:20 PM To: user@ant.apache.org Subject: Trying to get Ant + JUnit working peaceably Hello, I'm attempting to learn Java at present and needed to add some automation aroun

Trying to get Ant + JUnit working peaceably

2010-06-05 Thread Steven Harms
Hello, I'm attempting to learn Java at present and needed to add some automation around my build and test cycle. Coming from Ruby, I've got a real test-first design discipline. When I attempted to make a task call, I started getting this error (I can hear eyes rolling...). BUILD FAILED /Users

Re: Need help viewing output from failed ant/junit tests

2010-03-05 Thread Bill Moran
In response to Greg Roodt : > Ah, good suggestion Stefan. That makes sense. > > I personally have had no issues capturing STDOUT, but I use the xml > formatter to generate JUnit reports on Hudson. Also, this looks like a > particularly nasty little problem if the test times out or runs out of sta

Re: Need help viewing output from failed ant/junit tests

2010-03-05 Thread Greg Roodt
Ah, good suggestion Stefan. That makes sense. I personally have had no issues capturing STDOUT, but I use the xml formatter to generate JUnit reports on Hudson. Also, this looks like a particularly nasty little problem if the test times out or runs out of stack in a different environment. Cheers

Re: Need help viewing output from failed ant/junit tests

2010-03-05 Thread Stefan Bodewig
On 2010-03-05, Bill Moran wrote: > > timeout="1" maxmemory="512m" haltonfailure="no" > tempdir="/tmp" failureProperty="test.failure"> > Unfortunately, this doesn't give me any output anywhere. withOutAndErr should give you the output in most cases. Since yo

Re: Need help viewing output from failed ant/junit tests

2010-03-05 Thread Bill Moran
In response to Greg Roodt : > Ant normally captures stdout. Have you tried the xml formatter? Not yet. If you have reason to believe that it will more accurately report the output, my answer is that the other formatter should be reported as broken. But I'll give it a go and see if I have more s

Re: Need help viewing output from failed ant/junit tests

2010-03-05 Thread Greg Roodt
Ant normally captures stdout. Have you tried the xml formatter? It looks like your test is failing because its timing out, does it pass if you remove the timeout? Also, is there a reason you are using sysout rather than a logging framework like log4J? Cheers Greg On Fri, Mar 5, 2010 at 2:35 P

Need help viewing output from failed ant/junit tests

2010-03-05 Thread Bill Moran
Hello all. I'm fairly new to ant, we've been working with it a few weeks for our Java excursions and most things are rolling along pretty well. We've also been building a lot of tests using JUnit, and we're trying to get them configured in ant so we can automatically run them nightly on a dedica

Re: Ant Junit issues - CLASSPATH

2008-12-19 Thread Mark Salter
marshall_dan...@emc.com wrote: > Thank you Mark I will take a look. I caught and fixed the folder issue > but It still is not finding the class. Did you change the classpath specification to remove the extra levels into the junit task as well? > If a class is called com.emc.elms.test.EMCLmcryptK

RE: Ant Junit issues - CLASSPATH

2008-12-18 Thread Marshall_Daniel
Thank you Mark I will take a look. I caught and fixed the folder issue but It still is not finding the class. -Dan -Original Message- From: Mark Salter [mailto:marksal...@talktalk.net] Sent: Thursday, December 18, 2008 2:00 PM To: Ant Users List Subject: Re: Ant Junit issues

Re: Ant Junit issues - CLASSPATH

2008-12-18 Thread Mark Salter
marshall_dan...@emc.com wrote: > Sure I can give you some of it. It looks like its dropping my source > paths but I don't know why. It is dropping directories called:- C:\Build\build\src\com\emc\elms\keygen C:\Build\build\src\com\emc\elms\test C:\Build\build\src\com\emc\elms\keygen C:\

RE: Ant Junit issues

2008-12-18 Thread Marshall_Daniel
ass(URLClassLoader.java:188) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [junit] at java.lang.ClassLoader.l

Re: Ant Junit issues

2008-12-18 Thread Mark Salter
marshall_dan...@emc.com wrote: > I am fairly new to Ant and I am having issues with an ant script that I > am working on. I am receiving a ClassNotFoundException when the Junit > portion of my Ant script runs. Is the missing class one of yours? > The build and everything before that is > working c

Ant Junit issues

2008-12-18 Thread Marshall_Daniel
I am fairly new to Ant and I am having issues with an ant script that I am working on. I am receiving a ClassNotFoundException when the Junit portion of my Ant script runs. The build and everything before that is working correctly and the correct .class file is included in the class path for the Ju

RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-17 Thread Steve Whatmore
To: Ant Users List Subject: RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests Not trying to be obtuse of course, the manual pages aren't very explicit with respect to how you provide the properties to the mail logger. Is this through properties file some

RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-17 Thread Steve Whatmore
From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 1:46 PM To: Ant Users List Subject: RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests The quick solution is MailLogger. http://ant.apache.org/manual/listeners.html#MailL

RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-17 Thread Anderson, Rob (Global Trade)
t Users List > Subject: Re: Automated builds with ANT / JUnit, emailing the > results of the build / unit tests > > On 9/13/07, Loehr, Ruel <[EMAIL PROTECTED]> wrote: > > You can do the following. > > > > 1) Checkout cruisecontrol or Hudson.- nightly build serve

Re: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-13 Thread Peter Reilly
without jumping through hoops. > > > -Original Message- > From: Steve Whatmore [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 13, 2007 3:00 PM > To: user@ant.apache.org > Subject: Automated builds with ANT / JUnit, emailing the results of the > build / unit test

RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-13 Thread Loehr, Ruel
Sent: Thursday, September 13, 2007 3:00 PM To: user@ant.apache.org Subject: Automated builds with ANT / JUnit, emailing the results of the build / unit tests Good afternoon, I am trying to setup an automated build process complete with JUnit for a web application that I am developing. I would like

Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-13 Thread Steve Whatmore
Good afternoon, I am trying to setup an automated build process complete with JUnit for a web application that I am developing. I would like email the results of both the compile step and the JUnit step to a development distribution list that I have setup. I must be missing something be

Ant + JUnit

2007-08-31 Thread Joe Brutto
In my JUnit tests I have a series of public static methods embedded. When I run my tests, I receive: java.lang.Exception: No runnable methods Instead of requesting that the classes be ignored in the filter set for the batch run, is there any way to specify to ignore that "no runnable methods" er

Re: ant junit task...

2007-08-29 Thread Bruce Atherton
es attribute Jan.Materne wrote: first thought: the missing * before the $ in your exclude clause. Jan -Ursprüngliche Nachricht- Von: mayurs [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 28. August 2007 18:55 An: user@ant.apache.org Betreff: Re: ant junit task... I know o

Re: AW: ant junit task...

2007-08-29 Thread mayurs
> Jan > >>-Ursprüngliche Nachricht- >>Von: mayurs [mailto:[EMAIL PROTECTED] >>Gesendet: Dienstag, 28. August 2007 18:55 >>An: user@ant.apache.org >>Betreff: Re: ant junit task... >> >> >>I know of the excludes attribute the issue, is,

AW: ant junit task...

2007-08-28 Thread Jan.Materne
first thought: the missing * before the $ in your exclude clause. Jan >-Ursprüngliche Nachricht- >Von: mayurs [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 28. August 2007 18:55 >An: user@ant.apache.org >Betreff: Re: ant junit task... > > >I know of th

Re: ant junit task...

2007-08-28 Thread mayurs
4 has some support for this? Can someone >> let >> me know how to skip inner classes from being run by junit ant task? >> >> tx >> Mayur >> -- >> View this message in context: >> http://www.nabble.com/ant-junit-task...-tf4339046.html#a12359955 >> S

Re: ant junit task...

2007-08-27 Thread Jerome Jar
lasses from a specific > directory? > > I read somewhere that junit 4.4 has some support for this? Can someone let > me know how to skip inner classes from being run by junit ant task? > > tx > Mayur > -- > View this message in context: > http://www.nabble.com/ant-

ant junit task...

2007-08-27 Thread mayurs
specific directory? I read somewhere that junit 4.4 has some support for this? Can someone let me know how to skip inner classes from being run by junit ant task? tx Mayur -- View this message in context: http://www.nabble.com/ant-junit-task...-tf4339046.html#a12359955 Sent from the Ant - Users

ant/junit problem with FileNotFound

2006-04-26 Thread glenn opdycke-hansen
I have several ant scripts that invoke the next ant script via . The last ant script has a task that invokes Java code. There is a problem in the Java code that the File class cannot find the file with a relative path. I can resolve this by using the complete path to the file. This problem does no

Re: Ant, JUnit, debugging

2006-03-13 Thread Steve Loughran
Robert Taylor wrote: Greetings, I would like to step through some code in a JUnit test kicked off by an Ant target running in Eclipse. I've setup a remote debugging client in Eclipse and have used the following VM args using value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,sus

Ant, JUnit, debugging

2006-03-13 Thread Robert Taylor
Greetings, I would like to step through some code in a JUnit test kicked off by an Ant target running in Eclipse. I've setup a remote debugging client in Eclipse and have used the following VM args using value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/> I wait u

Re: problem running ant/junit from Eclipse

2006-01-16 Thread Steve Loughran
maarten roosendaal wrote: Thanks, i changed the pattern to exclude innerclasses: Maarten yeah, that would do it. I always give my tests the same ending, so *Test.class catches it. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: problem running ant/junit from Eclipse

2006-01-16 Thread maarten roosendaal
Thanks, i changed the pattern to exclude innerclasses: Maarten --- Steve Loughran <[EMAIL PROTECTED]> wrote: > maarten roosendaal wrote: > > Hi, > > > > I have create a MultiThreadedTestCase based on the > one > > descibed in > > > http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-junit.ht

Re: problem running ant/junit from Eclipse

2006-01-16 Thread Steve Loughran
maarten roosendaal wrote: Hi, I have create a MultiThreadedTestCase based on the one descibed in http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-junit.html. It uses an Innerclass that extends TestCaseRunnable that implements Runnable. When i run the test from Eclipse it works fine. When i

problem running ant/junit from Eclipse

2006-01-16 Thread maarten roosendaal
Hi, I have create a MultiThreadedTestCase based on the one descibed in http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-junit.html. It uses an Innerclass that extends TestCaseRunnable that implements Runnable. When i run the test from Eclipse it works fine. When i run the test from an ANT bu

Re: Ant + JUnit: Missing Test Output

2005-06-30 Thread Donald McLean
Bing! I can't even guesss how I missed that. Thank you, Donald Ivan Ivanov wrote: Hello Donald, A quick look at you code shows that you are not using printsummary and showoutput attributes and Ant task. You can find them described at[1] HTH Ivan [1]http://ant.apache.org/manual/OptionalTask

Re: Ant + JUnit: Missing Test Output

2005-06-30 Thread Ivan Ivanov
Hello Donald, A quick look at you code shows that you are not using printsummary and showoutput attributes and Ant task. You can find them described at[1] HTH Ivan [1]http://ant.apache.org/manual/OptionalTasks/junit.html --- Donald McLean <[EMAIL PROTECTED]> wrote: > I'm trying to set up a con

Ant + JUnit: Missing Test Output

2005-06-30 Thread Donald McLean
I'm trying to set up a configuration that runs our JUnit regession test suite from Ant. It runs, but I can't figure out what is happening to everything that is supposed to go to System.out. Undoubtedly, I'm doing something stupid, so feel free to make fun of me if you wish, but only if you hav

Ant + jUnit +++ deal with failures?

2005-01-28 Thread Dan
First, I have searched the archives and found some ideas, but I would like to get more ideas from people on the best ways to do what I want. I have a J2EE system running on Weblogic that I want to write a monitoring app to watch. I want to check that the servers are up, that the db is returning

Re: Ant+JUnit

2004-11-13 Thread Martijn Kruithof
Igor A. Deruga wrote: I know that this question has been asked hundreds times, but I can't find a single document on it... Maybe you can redirect me? I'm using Eclipse+Ant. I've added these lines into build.xml: //--XML---

Ant+JUnit

2004-11-12 Thread Igor A. Deruga
I know that this question has been asked hundreds times, but I can't find a single document on it... Maybe you can redirect me? I'm using Eclipse+Ant. I've added these lines into build.xml: //--XML---

Re: Ant + JUnit problems

2004-10-12 Thread Ivan Ivanov
classloader". So you can do this: place junit.jar in any directory say C:\thirdpartyJars and then move ant-junit jar from $ANT_HOME/lib to C:\thirdpartyJars and then redefine junit task in this way: Here the jars are loaded by one and the same classloader

RE: Ant + JUnit problems

2004-10-12 Thread Conelly, Luis (GE Energy, Non GE, GENE)
TED] Cc: Cosmo A. DiFazio Jr. Subject: Ant + JUnit problems Hi everyone. I can now make Ant + JUnit work on my machine, but only by adding files to the Ant installation. I do *not* want to tell my students they have to do this --- my experience is that mucking with third-party installs leads alm

Ant + JUnit problems

2004-10-12 Thread Greg Wilson
Hi everyone. I can now make Ant + JUnit work on my machine, but only by adding files to the Ant installation. I do *not* want to tell my students they have to do this --- my experience is that mucking with third-party installs leads almost instantly to maintenance migraines. So, here's

classloading, ant, junit, more advanced question

2004-09-11 Thread Hiller, Dean D (Dean)
One thing I get really nervous about is always having a junit.jar in ant/lib and then one in the project itself so the project compiles. I know, I know, classloader stuff. But I had a suggestion around some of that, and I think I have seen similar comments. I only suggest this as I wrote an x

incorrect package name in .java files Re: Please help with Ant/Junit

2004-01-19 Thread Baz
- From: "Baz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 17, 2004 1:44 AM Subject: Please help with Ant/Junit > All, > > I am a newbie and would like to use junit in my build.xml. However, it keep > giving me the following errors... Pleas

Re: Ant/JUnit not happy on a Gump...

2003-10-13 Thread Stefan Bodewig
On Mon, 13 Oct 2003, Adam R. B. Jack <[EMAIL PROTECTED]> wrote: > I'm trying to debug why a project can't load a junit task when run > on Gump, with junit in the path. Does you Python Gump use Ant's Main class as entry point as the shell script Gump does? > I tried running the ant with -debug (i