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. -- ---

junit task: Unable to run JUnit4 test with TestCase super-class

2012-02-24 Thread Martin Huber
Is there a way to force Ant 1.8.2 to use JUnit4 for JUnit4 tests which it does not recognize correctly? I have JUnit4 test classes which extend a class (SeleneseTestCase) which in turn extends junit.framework.TestCase. The tests require a custom JUnit4 Runner which is annotated to the test clas

Junit task failing on formatter="failure"

2011-12-06 Thread Wright, Clark
Just started using Ant 1.8.2, mostly in order to use the new "failure" formatter of the junit task. This macrodef: Juni

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-05 Thread Bob Billings
Yeah, that would suit my purposes. Seems like the first line is the only one likely to contain a space before the word " more" anyway, aside from the line we want to strip. Bob On Aug 5, 2011, at 8:40 AM, Stefan Bodewig wrote: > On 2011-08-04, Robert E. Billings III wrote: > >> OK, I'll fil

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-05 Thread Stefan Bodewig
On 2011-08-04, Robert E. Billings III wrote: > OK, I'll fill out a bugzilla report. Thanks for verifying! :) Would it be enough if we simply started filtering after the first line of the stack trace? That fix would be easiest to implement. Stefan --

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-04 Thread Robert E. Billings III
t; word > > "more" as the culprit > > - and even if they do know, it's hard to implement a policy of "Okay > > everybody, remember not to use the word 'more' in your failure messages." > > I agree with you, in particular with the last point. &g

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-04 Thread Stefan Bodewig
unlikely that anybody running into this problem will suspect the word > "more" as the culprit > - and even if they do know, it's hard to implement a policy of "Okay > everybody, remember not to use the word 'more' in your failure messages." I agree with y

junit task xml output omits failure message if it contains the word " more"?

2011-07-28 Thread Bob Billings
t SQL scripts they checked in worked properly, whether our test data loaded correctly, etc. I was noticing that some of the test failures shown in the emails were missing the actual reason for the test failure -- they just said "at ". I've tracked down the issue to the Ant junit task

Junit task results in 1.8.2

2011-03-23 Thread St. Denis, David
I am having trouble viewing the Properties >> link on my test result pages when using the junit task from Ant 1.8.2. Previously I was using Ant 1.7.0 and the Properties page rendered correctly. Looking at the page source I can see a minor difference in the way the line.separator prope

Junit Task dies with NullPointerException

2010-06-06 Thread Steven Harms
Having surmounted the Ant-as-technology issue, I'm now encountering an error in my ant execution of junit. When I run my ant script, I get: java.lang.NullPointerException at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder$TestInfos.(FailureRecorder.java:349) (The full stack is here:

AW: Strange error in junit task

2009-10-21 Thread Knuplesch, Juergen
711 806098-299 Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -Ursprüngliche Nachricht- Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Gesendet: Mittwoch, 21. Oktober 2009 09:45 An: Ant Users List Betreff: Strange error in junit task Hello, In

Strange error in junit task

2009-10-21 Thread Knuplesch, Juergen
Hello, In I get the following error: D:\DopeBuildBase\Build\DopeBuildServer\dopebuild_ant.xml:1123: the archive cpjdope.jar doesn't exist What does this mean??? I expect a class not found exception, if a class is missing, but junit does not even start. The jar is where it should be. So what

Re: How to specify other JUnitTestRunner in junit task

2009-09-17 Thread supareno
Gao, have you tried the @RunWith annotation? since junit 4.x http://www.jdocs.com/junit/4.1/org/junit/runner/RunWith.html supareno Hi: Is it possible to specify own JUnitTestRunner instead of org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner in JunitTask ? If possible, in which v

How to specify other JUnitTestRunner in junit task

2009-09-16 Thread Gao Lin
Hi: Is it possible to specify own JUnitTestRunner instead of org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner in JunitTask ? If possible, in which version it will work. I need my own JUnitTestRunner to execute extra codes before each test case executed. -- Thanks and Best Regard

Re: Why does Junit Task buffers all logs

2009-08-04 Thread Steve Loughran
Mel T wrote: When running a JUnit task, all logs are accumulated in a ByteArrayOutputStream. This can consume a lot of memory if running in debug and some libraries make excessive use of debug logging (such as DBUnit). Why does the JUnit task do that? It isnt junit so much as the junit

Why does Junit Task buffers all logs

2009-07-31 Thread Mel T
When running a JUnit task, all logs are accumulated in a ByteArrayOutputStream. This can consume a lot of memory if running in debug and some libraries make excessive use of debug logging (such as DBUnit). Why does the JUnit task do that? Mel T. -- View this message in context: http

Re: Adding parallel JUnit task

2009-07-21 Thread Konstantin Boudnik
Hi Jason. It is an interesting insight. This junit runner for Hadoop you've mentioned, would it actually allow to parallel an execution of a bunch of tests on a multi-way hardware? Or it would require someone to make manual split of tests into separate test suites first? Is the source code is ava

Re: Adding parallel JUnit task

2009-07-01 Thread Jason Rutherglen
> I've been thinking of an extra junit4 task in its own antlib, this could go alongside it. I've also done a junit3 runner for hadoop, runs each test suite as a separate task... That sounds like a good approach. This way one simply needs to add a jar to their existing project. Hadoop sounds great a

Re: Adding parallel JUnit task

2009-07-01 Thread Steve Loughran
Jason Rutherglen wrote: Hello, please excuse the newbie question. For the Apache Lucene project I'd like to paralleize the unit tests by subclassing JUnitTask into ParallelJUnitTask which executes JUnitTests in threads. I don't understand how to place things like into the new task tag properly

Adding parallel JUnit task

2009-06-29 Thread Jason Rutherglen
Hello, please excuse the newbie question. For the Apache Lucene project I'd like to paralleize the unit tests by subclassing JUnitTask into ParallelJUnitTask which executes JUnitTests in threads. I don't understand how to place things like into the new task tag properly. Here's what I've tried

Re: junit task issue

2009-05-27 Thread Konstantin Boudnik
That'd be very handy sometimes! +1 Juan Pablo Lis wrote: Hello All, I'm having a problem while running junit tasks, when the test is large. I'm getting an out of memory exception, but I notice that the formatter (XML) is not flushing the file while it is running, it writes the whole file at t

junit task issue

2009-05-27 Thread Juan Pablo Lis
Hello All, I'm having a problem while running junit tasks, when the test is large. I'm getting an out of memory exception, but I notice that the formatter (XML) is not flushing the file while it is running, it writes the whole file at the end of the test. Is it possible to set the formatter to w

File handles aren't closed/released when using Junit task in Ant

2009-04-07 Thread Katy Podolner
I've been using the Junit task, both with "fork=yes" and w/o it. In both cases, some files which are created & written to as part of the Junit tests which the task runs, appear as still open by the java process when the whole Ant build is finished . and so the next bu

AW: clearer output for junit task

2008-10-30 Thread Knuplesch, Juergen
1.If you use the task junit-report, it will create HTML, tells all about which test had an error or a failure and on the page of each Test there is a link to stdout and stderr. I guess this is what you want??? 2.When I use the junit-task Í get the following output on my console: [junit

clearer output for junit task

2008-10-29 Thread Brendan Miller
I'm running junit unit tests from ant through the junit task. There have been a few times where information will be printed to stdout, or exceptions will be thrown, and it's difficult to determine which unit test produced the output or exception. Is there any way to make ant's j

AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
on: JOMO00 [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 28. August 2008 18:24 An: user@ant.apache.org Betreff: Re: java.lang.ClassNotFoundException" when running junit task Hi, I already have great problems with ant and junit. I run ant 1.6.5 and junit 4.5 is this combination ok? Should i bette

Re: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
ile execting junit task. > > > > Testsuite: BaseServiceCommunicationManagerTest > > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > > >Caused an ERROR > > BaseServiceCommunicationManagerTest > > java.lang.Class

RE: AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Martin Gainty
endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: AW: java.lang.ClassNotFoundException" when running junit task > Date: Thu, 28 Aug 2008 10:28:29 +0200 > From: [EMAIL PROTECT

Re: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
/java.lang.ClassNotFoundException%22-when-running-junit-task-tp14167580p19197408.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
gt; USt-IdNr.: DE 811944121 > -Ursprüngliche Nachricht- > Von: JOMO00 [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 28. August 2008 09:06 > An: user@ant.apache.org > Betreff: Re: java.lang.ClassNotFoundException" when running junit task > > > Hi All, > I read

AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
: java.lang.ClassNotFoundException" when running junit task Hi All, I read just read the thread below. Ich have the same Exception by unsing ant and . I know there is a problem with the classpath, but I don't know what is wrong. Which *jar files do I need an my classpath?Here

Re: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
OMO00 venkata prasad wrote: > > Hi All, > > I am getting the below error while execting junit task. > > > > Testsuite: BaseServiceCommunicationManagerTest > > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > > >Caused an

Re: JUnit task

2008-06-12 Thread Steve Loughran
that help from that book may be a little bit of a long shot, or was the junit task covered somewhat in depth in your book, Steve? oh yes, there is lots of coverage of it, and the stuff on top, such as Cactus, even AntUnit but - nothing on Junit4. That was not just because Ant1.7 can&#x

Re: JUnit task

2008-06-12 Thread Tim Visher
Wow... let me feel sheepish for a bit as I blithely mentioned the acquisition of Ant in Action to its author (sometimes, reading signatures is helpful)... I suppose that means that help from that book may be a little bit of a long shot, or was the junit task covered somewhat in depth in your book

Re: JUnit task

2008-06-12 Thread Tim Visher
@Steve: I'm not too sure I understand what you're talking about. The junit task that ant 1.7 comes with works with junit 4. All of the tests I have written are 'pure' junit 4 tests and I've got the junit task running fine. I just think there needs to be better docu

Re: JUnit task

2008-06-12 Thread Steve Loughran
e focussed help. However, there is good news. We got the junit task to work, just in such a way that I didn't think was necessary. I'll try to post that file on here soon and hope that someone will tell me a better way to do it. Someone really needs to sit down and do a good Juni

Re: JUnit task

2008-06-11 Thread Tim Visher
. However, there is good news. We got the junit task to work, just in such a way that I didn't think was necessary. I'll try to post that file on here soon and hope that someone will tell me a better way to do it. Thanks for the help. On Wed, Jun 11, 2008 at 2:56 PM, supareno <[

Re: JUnit task

2008-06-11 Thread supareno
check out this... http://www.google.fr/search?source=ig&hl=en&rlz=&=&q=junit+and+ant+tutorials Hello everyone, I'm struggling to understand the junit task. I was wondering if anyone knew of a good tutorial or article that is current (junit 4, ant 1.7) that is perhaps sli

JUnit task

2008-06-10 Thread Tim Visher
Hello everyone, I'm struggling to understand the junit task. I was wondering if anyone knew of a good tutorial or article that is current (junit 4, ant 1.7) that is perhaps slightly better than the junit page in the manual. Thanks! -- In Christ, Timmy V. http://burningones.com/

JUnit Task Classloader

2008-03-17 Thread Nikolas Everett
Unit tests. Is this possible using the standard ANT JUnit task? Is it possible using some non-standard way? Thanks for your time, --Nik Everett

Re: java.lang.ClassNotFoundException" when running junit task

2007-12-05 Thread Steve Loughran
venkata prasad wrote: Hi All, I am getting the below error while execting junit task. Testsuite: BaseServiceCommunicationManagerTest Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec Caused an ERROR BaseServiceCommunicationManagerTest java.lang.ClassNotFoundException

java.lang.ClassNotFoundException" when running junit task

2007-12-05 Thread venkata prasad
Hi All, I am getting the below error while execting junit task. Testsuite: BaseServiceCommunicationManagerTest Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec Caused an ERROR BaseServiceCommunicationManagerTest java.lang.ClassNotFoundException

RE: junit task classpath issue, can't find jdbc drivers?

2007-09-10 Thread Preston, Brian
27;t tried it yet, I was a little wary of fork for some unfounded fear of runaway processes or something. But it worked, so it's all good. Thanks! -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 6:36 AM To: Ant Users List Subject:

Re: junit task classpath issue, can't find jdbc drivers?

2007-09-10 Thread Steve Loughran
Preston, Brian wrote: Is there a common 'gotcha' with running the junit task and classpaths? Because I'm having a problem where my tests run against the database, so they need the drivers on the classpath, and they're not being found. Here's the error : java.sql.

junit task classpath issue, can't find jdbc drivers?

2007-09-07 Thread Preston, Brian
Is there a common 'gotcha' with running the junit task and classpaths? Because I'm having a problem where my tests run against the database, so they need the drivers on the classpath, and they're not being found. Here's the error : java.sql.SQLExcepti

Re: ant junit task...

2007-08-29 Thread Bruce Atherton
hat contains a "$" should be copied. Perhaps you could show exactly how you have defined your junit task in your latest test. There may be another issue with it. mayurs wrote: I also tried excludes="**/*$*.class, same result, it includes the inner classes as well , due to the includ

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
n 8/28/07, mayurs <[EMAIL PROTECTED]> wrote: >> >> Hi All >> >> I have this Junit task in my build.xml file, >> >> >> >> >> > includes="**/Test*.class"/> >> >>

Re: ant junit task...

2007-08-27 Thread Jerome Jar
Hi, Mayur, I think you can make use of the "excludes" attribute of the fileset. Inner classes have at least one "$" marks in the names of their class files. Regards, Jerome. On 8/28/07, mayurs <[EMAIL PROTECTED]> wrote: > > Hi All > > I hav

ant junit task...

2007-08-27 Thread mayurs
Hi All I have this Junit task in my build.xml file, The problem is this wilcard for includes above will run all Junit Test classes that I have , including some inner class. How do I tell Junit ant task, to skip inner classes from a

AW: AW: Trouble executing a junit task

2007-08-22 Thread Jan.Materne
;Betreff: Re: AW: Trouble executing a junit task > >Yep, looks like that's what happend. I just upgraded to the newer ant, >and things went on... to another problem :o( I get a report, >that junit >tests failed. Is it possible that cc team released something >like that, >or

Re: AW: Trouble executing a junit task

2007-08-22 Thread Krzysztof Kucybała
uting a junit task Hi, I'm trying to build the dashboard application for cruise control 2.7. The build.xml for that app has a junit task, which fails and breaks the build. First it would give me an error that it could not initialize the task, with a suggestion to put a relevant jar f

AW: Trouble executing a junit task

2007-08-22 Thread Jan.Materne
ResourceCollection was introduced in Ant 1.7.0. Are you mixing different Ant versions? Jan >-Ursprüngliche Nachricht- >Von: Krzysztof Kucybała [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 22. August 2007 10:41 >An: Ant Users List >Betreff: Trouble executing a j

Trouble executing a junit task

2007-08-22 Thread Krzysztof Kucybała
Hi, I'm trying to build the dashboard application for cruise control 2.7. The build.xml for that app has a junit task, which fails and breaks the build. First it would give me an error that it could not initialize the task, with a suggestion to put a relevant jar file on the classpath.

AW: JUnit task and tests in jars

2007-04-23 Thread Jan.Materne
> > > > > The fileset will return a list of jar files and batchtest want to have a class or java file. So you must point to a directory _directory_ containing the tests. I dont know if supports 1.7-resource collections

JUnit task and tests in jars

2007-04-23 Thread Denis Bessmertnyj
Hi, I have a lot of jars with JUnit test cases. How I may run them. What is wrong in this approach:

JUnit task and tests in jars

2007-04-20 Thread Denis Bessmertnyj
Hi, I have a lot of jars with JUnit test cases. How I may run them. What is wrong in this approach:

RE: help in junit task

2007-03-28 Thread Vladimir Egorov
t.apache.org > Subject: help in junit task > > Hi, > In our project we are using junit task with batchtest. Our classes for > unit > testing are in jars. The problem is batchtest task looks only inside the > dir > attribute. i want batchtest to look in to the jar which is i

help in junit task

2007-03-27 Thread Ramu S
Hi, In our project we are using junit task with batchtest. Our classes for unit testing are in jars. The problem is batchtest task looks only inside the dir attribute. i want batchtest to look in to the jar which is included in classpath. i even tried by adding that jar in env variable. nothing

Re: JUnit task and the 'fork' attribute...

2007-01-30 Thread Andrew Close
try with ant -verbose. This problem can happen with having old versions of ant in the classpath of the forked junit task. In this case the contents of lib.path should be looked at. (common causes would be jars that have embedded ant classes - fo example weblogic.jar and jrun.jar) In the current sv

Re: JUnit task and the 'fork' attribute...

2007-01-29 Thread Peter Reilly
try with ant -verbose. This problem can happen with having old versions of ant in the classpath of the forked junit task. In this case the contents of lib.path should be looked at. (common causes would be jars that have embedded ant classes - fo example weblogic.jar and jrun.jar) In the

JUnit task and the 'fork' attribute...

2007-01-29 Thread Andrew Close
hello all, i'm attempting to get the fork attribute to work with the optional JUnit task. when attempting a build on this machine we are getting JVM OutOfMemoryErrors during the JUnit task. so i figured i would use the fork command and then be able to up the JVM heap size for that parti

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-03 Thread Scot P. Floess
If memory serves, the location attribute should be a directory, jar file, etc. The path attribute is just that...it can contain a path ;) Alasdair Young wrote: It worked!! I used: instead of and it worked! I have no idea why it worked (This is my first major reworking of an

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
It worked!! I used: > > > instead of > > and it worked! I have no idea why it worked (This is my first major reworking of an ant buildfile that someone other than myself wrote) but it worked! Thank you very much! - alasdair Alasdair Young Scot P. Floess wrote: > Oops - my bad...no line

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
Incidentally, this did _not_ work for me, but thank you anyway! - alasdair Hussam Al-Tayeb wrote: >> I solved this by doing export >> CLASSPATH=$CLASSPATH:$ANT_HOME/lib/junit.jar > - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
"export CLASSPATH=$CLASSPATH:$ANT_HOME/lib/junit.jar" just out of interest, can my junit.jar file be called junit-4.1.jar? Or it MUST be called junit.jar? - alasdair Hussam Al-Tayeb wrote: > On 1/2/07, Alasdair Young <[EMAIL PROTECTED]> wrote: >> Hi! >> >> I'm trying to set up some automated bu

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Hussam Al-Tayeb
On 1/2/07, Alasdair Young <[EMAIL PROTECTED]> wrote: Hi! I'm trying to set up some automated builds for the first time here and I'm using a legacy ant build script that I've been hacking away at to get junit working. I am running ant 1.7, Junit 4.1 and java 1.5 on fedora core 5. When I try to

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Scot P. Floess
Oops - my bad...no line wrap :( Well something else to try, add the path to build-tests as part of the path... For instance if build-tests exists as /foo/bar/build-test, put /foo/bar/build-tests in as a path element... Or try using instead of I think the problem is you need to use the

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
Thanks for the fast response! I don't think that's it - ./build-tests should be in there - 3rd from the end. any other ideas perhaps? - alasdair Scot P. Floess wrote: > Looks like you need to put ./build-tests in your path element. > > location="./build-tests:.:../java/build:../thirdParty/si

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Scot P. Floess
Looks like you need to put ./build-tests in your path element. Alasdair Young wrote: I should also mention that ./build-tests/com/vigilos/apps/setup/TestScheduledtlTableModel.class exists and is the class I wish to run. Hmm... could it be an issue with not looking in the right directory? -

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
I should also mention that ./build-tests/com/vigilos/apps/setup/TestScheduledtlTableModel.class exists and is the class I wish to run. Hmm... could it be an issue with not looking in the right directory? - alasdair Alasdair Young wrote: > Hi! > > I'm trying to set up some automated builds for th

"java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
Hi! I'm trying to set up some automated builds for the first time here and I'm using a legacy ant build script that I've been hacking away at to get junit working. I am running ant 1.7, Junit 4.1 and java 1.5 on fedora core 5. When I try to get junit to run my tests via ant, I get the following:

Re: Ant 1.6.5 and JUnit task

2006-12-17 Thread Sebastian Weber
Hello Antoine, "echo $ANT_HOME" returns ANT_HOME: Undefined variable. and "which ant" returns /usr/bin/ant How can I check if Anthill sees the same settings? I use AnthillOS which has far less options to set than AnthillPro. It comes with the binary versions of Ant 1.5.1 and 1.6.2 in its li

Re: Ant 1.6.5 and JUnit task

2006-12-17 Thread Antoine Levy-Lambert
Hello Sebastian, there might be a possibility to fix that without deleting files. Although deleting these files would not harm. I suppose that in the path there is an older version of the ant script than the one in the Ant 1.7.0 installation directory. What do you see when you do : echo

Re: Ant 1.6.5 and JUnit task

2006-12-16 Thread Sebastian Weber
@Antoine Thanks for the tip. I found /etc/ant.conf /etc/ant.d (empty folder) /usr/share/ant/ant-update.xsl /usr/share/ant/changelog.xsl /usr/share/ant/junit-frames-xalan1.xsl /usr/share/ant/log.xsl tagdiff.xsl If they are the reason for the failed builds how can I get rid of them? Is it enoug

Re: Ant 1.6.5 and JUnit task

2006-12-16 Thread Peter Reilly
I would suggest using ant 1.7RC1 * Add to the build file a check for ant 1.7 to ensure that you are using ant 1.7 or higher. (a bit verbose ... .. but does the work) * use the ability of ant 1.7 to have the junit.jar in the classpath of the task.

Re: Ant 1.6.5 and JUnit task

2006-12-15 Thread Antoine Levy-Lambert
Hello Sebastian, there might be a system wide ant installed on your system. Check for the presence of a file called /etc/ant.conf. This one might be the one which is killing you. see this posting by Peter Reilly : http://marc.theaimsgroup.com/? l=ant-user&m=116378339914211&w=2 Regards, A

Ant 1.6.5 and JUnit task

2006-12-15 Thread Sebastian Weber
Hi everybody, I am sure that I am not the first one to post that particular question here, but I'm very close to snapping my keyboard in half, because I can't get it done. I set up an Anthill build management server on a Fedora based linux system. The machine I am working on is a server on w

Junit task performance

2006-10-20 Thread Kevin Cline
Running unit tests via the Ant junit task seems to be extraordinarily slow. For example, I have one test that runs in 24 seconds if I start it via "java junit.textui.TestRunner" but it takes over three minutes to run the same test via the ant junit task. Truss shows that the junit

Re: UnsatisfiedLinkError when invoking native library from junit task

2006-06-14 Thread Juan Jimenez
I found some interesting reading here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4280189 http://forum.java.sun.com/thread.jspa?threadID=707176 However, since my script will not work without the sysproperty, one of the following must be true: a) the described behaviour of java.library.p

Re: UnsatisfiedLinkError when invoking native library from junit task

2006-06-14 Thread Dominique Devienne
Our tests have always been forked and I do want to avoid hacks, which is why I am coming to this forum. Cool. This is enough for the libraries directly loaded by System.loadLibrary, but not for their dependencies. PATH or Path has to be used on Windows. That's the equivalent

Re: UnsatisfiedLinkError when invoking native library from junit task

2006-06-14 Thread Juan Jimenez
Thank you for taking an interest. Our tests have always been forked and I do want to avoid hacks, which is why I am coming to this forum. This is what I have so far ( lib.package contains all shared objects ):

Re: UnsatisfiedLinkError when invoking native library from junit task

2006-06-14 Thread Dominique Devienne
Presumably you are running forked? I think you also need to make sure that your path and library search path includes the existing env variables. Mostly likely not. The only "right" solution is to . > Am I going to be forced to look into a nominated directory and preload > anything that match

Re: UnsatisfiedLinkError when invoking native library from junit task

2006-06-14 Thread Steve Loughran
Juan Jimenez wrote: Back in June 2004 there was a thread briefly discussing the problem of native libraries having dependencies on further native libraries and the apparent lack of support in ANT to modify Path or LD_LIBRARY_PATH as appropriate. I am facing the problem (which I explain in more d

Re: UnsatisfiedLinkError when invoking native library from junit task

2006-06-14 Thread Juan Jimenez
For completeness, I am using: Apache Ant version 1.6.5 compiled on June 2 2005 java version "1.5.0_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) Java HotSpot(TM) Server VM (build 1.5.0_05-b05, mixed mode) On 14/06/06, Juan Jimenez <[EMAIL PROTECTED]> wrote: Back

UnsatisfiedLinkError when invoking native library from junit task

2006-06-14 Thread Juan Jimenez
Back in June 2004 there was a thread briefly discussing the problem of native libraries having dependencies on further native libraries and the apparent lack of support in ANT to modify Path or LD_LIBRARY_PATH as appropriate. I am facing the problem (which I explain in more detail below) and I am

Re: junit task sometimes creates zero-length result files

2006-01-28 Thread Stefan Bodewig
On Fri, 27 Jan 2006, Carlton Brown <[EMAIL PROTECTED]> wrote: > The ant task seems to create zero-length output files for a > few of my unit test classes. Which version of Ant are you using? There have been some problems with tests running into timeouts or crashing the VM, but they are supposed

Re: junit task sometimes creates zero-length result files

2006-01-27 Thread Dominique Devienne
On 1/27/06, Brown, Carlton <[EMAIL PROTECTED]> wrote: > The ant task seems to create zero-length output files for a few > of my unit test classes. It does so without reporting any errors but > of course of course chokes on them complaining about > premature EOF. > Does anyone have any suggestio

junit task sometimes creates zero-length result files

2006-01-27 Thread Brown, Carlton
The ant task seems to create zero-length output files for a few of my unit test classes. It does so without reporting any errors but of course of course chokes on them complaining about premature EOF. Does anyone have any suggestions as to how to troubleshoot a problem like this? Thanks

Re: JUnit task

2005-12-06 Thread Dominique Devienne
> >That's given your basedir as a pathelement - how about giving it the > >"testing" directory instead? Isn't that the base of the testing classes? > > But I think that is correct. > The base dir is, say, xxx. The testing dir sits below this with tests that > are in the testing package. > So sitti

Re: JUnit task

2005-12-06 Thread andy wix
Phew, got there in the endthanks for the help. cheers Andy _ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ---

RE: JUnit task

2005-12-06 Thread Jon Skeet
> >That's given your basedir as a pathelement - how about giving it the > >"testing" directory instead? Isn't that the base of the > testing classes? > > But I think that is correct. > The base dir is, say, xxx. The testing dir sits below this > with tests that are in the testing package. > So

Re: JUnit task

2005-12-06 Thread andy wix
That's given your basedir as a pathelement - how about giving it the "testing" directory instead? Isn't that the base of the testing classes? But I think that is correct. The base dir is, say, xxx. The testing dir sits below this with tests that are in the testing package. So sitting in my x

AW: JUnit task

2005-12-06 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Jon Skeet [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 6. Dezember 2005 11:06 >An: Ant Users List >Betreff: RE: JUnit task > >> > > so it seems the fileset bit works (finds the test) but >> JUnit d

RE: JUnit task

2005-12-06 Thread Jon Skeet
> > > so it seems the fileset bit works (finds the test) but > JUnit doesn't > >have > > > the classpath. > > > >Simply because you didn't provide any ;-) > > > >You'd need a nested (within ) with at least your > >"testing" directory, and any other jar(s) or directory(ies) > required to > >run

Re: JUnit task

2005-12-06 Thread andy wix
> so it seems the fileset bit works (finds the test) but JUnit doesn't have > the classpath. Simply because you didn't provide any ;-) You'd need a nested (within ) with at least your "testing" directory, and any other jar(s) or directory(ies) required to run the tests. --DD At the danger o

Re: JUnit task

2005-12-05 Thread Dominique Devienne
> > > > > > > > > > > > so it seems the fileset bit works (finds the test) but JUnit doesn't have > the classpath. Simply because you didn't provide any ;-) You'd need a nested (within ) with at least your "testing" directory, and any other jar(s) or directory

JUnit task

2005-12-05 Thread andy wix
Hi, I am having difficulty setting the classpath for this. If I have a testing directory under the basedir (and these tests are in the testing package) what classpath do I need to define to use batch tests? So I want to be able to run all the test classes in that directory:

  1   2   >