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
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.
--
---
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:\
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
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
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
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
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
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
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
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
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
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
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
> 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,
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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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---
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---
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
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
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
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
-
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
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
55 matches
Mail list logo