standard j2ee/ant test tool ?

2003-01-20 Thread Sebastien BLANC
Hello ! there are a lot of test tools out in the j2ee( integrated w/ ant) field and I was wondering if there was an open source standard for j2ee and ant integration ? or if anybody has had experiences with different non-regression/test chain tools and can give the pros/cons. thank you for any

Re: Empty xml file when test case times out

2002-12-09 Thread Stefan Bodewig
On Mon, 09 Dec 2002, Gordon Vidaver <[EMAIL PROTECTED]> wrote: > If I actually have a test case that times out, the junit > target produces an empty xml file as a result, <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2499> fixed in both CVS branches

Empty xml file when test case times out

2002-12-09 Thread Gordon Vidaver
Hi, Using ant 1.5.1 and JUnit 3.8.1 I'm trying to use the timeout feature of the junit target with the junitreport target. If I actually have a test case that times out, the junit target produces an empty xml file as a result, which leads to the following error with JUnitR

Test

2002-12-03 Thread Ashuthosh Bhat
Test -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

JUnit test on XDoclet code

2002-11-23 Thread SainTiss
Hi, Is there an example somewhere of a JUnit test written with the help of the JUnit ant task, on some XDoclet generated EJB code? Thanks Hans signature.asc Description: This is a digitally signed message part

Re: pattern test/*/**

2002-09-30 Thread Sven Köhler
the attached test-case creates 3 jar which show the following: test1.jar: (just a test) the pattern test/** matches the folder test/ itself and it's contents test2.jar: (BUG) this jar does not contain test/test2.txt although the pattern test/*/** shouldn't match against it. test3

Re: pattern test/*/**

2002-09-29 Thread Stefan Bodewig
On Sun, 29 Sep 2002, Sven Köhler <[EMAIL PROTECTED]> wrote: > according to the rules the pattern >test/asdf/** > matches the directory test/asdf itself, and all it's subdirectories. Does it match asdf itself? > what i try to do is to exclude all subdirectories of tes

Re: pattern test/*/**

2002-09-29 Thread Sven Köhler
> why does > test/*/** > match files inside test/ ? just to make myself clear, the "*" should match any directories inside test/ because after the "*" there is a "/" - for the same reason it shouldn't match any file inside test/ i don't think

pattern test/*/**

2002-09-28 Thread Sven Köhler
hi! according to the rules the pattern test/asdf/** matches the directory test/asdf itself, and all it's subdirectories. why does test/*/** match files inside test/ ? what i try to do is to exclude all subdirectories of test/ but not to exclude the files within test/

failed Junit test -> file permission error? Ant 1.5 bug?

2002-09-27 Thread otisg
Hello, I am running JUnit tests via Ant 1.5 on Windows, and whenever a test fails Ant reports it as file permission error, which is completely incorrect. Here is an example: [junit] Running net.wgen.amp.model.AmpUserTest [junit] java.security.AccessControlException: access denied

Re: Junit task not locating Test classes

2002-09-26 Thread Stefan Bodewig
On Thu, 26 Sep 2002, B. Manikandan <[EMAIL PROTECTED]> wrote: > The following is my build.xml. Iam always getting a > ClassNotFoundError for the test class. $src.test.dir points to the > parent directory of com.schwab.test.MoneyTest. To get that straight, you have a file ${sr

Junit task not locating Test classes

2002-09-26 Thread B Manikandan
Hi, The following is my build.xml. Iam always getting a ClassNotFoundError for the test class. $src.test.dir points to the parent directory of com.schwab.test.MoneyTest

Junit test can't write XML reports (permission, Windows)

2002-09-23 Thread otisg
are generated without problems. [junit] Running net.wgen.amp.action.ViewStudentsInClassActionTest [junit] java.security.AccessControlException: access denied (java.io.FilePermission C:\NightlyBuild\checkout\mclass\javaserver\build\reports\ut\TEST

Re: [TEST] JTest 4.4 and Ant

2002-09-11 Thread Stefan Bodewig
On Wed, 11 Sep 2002, A. Competitor <[EMAIL PROTECTED]> wrote: > Therefor I will send a gzipped tar file with examples to your > personal apache mailaccount ! > > Maybe you can put some of it on the forum. Yes, its there in bugzilla now (PR 12535). >>would JTest see that the javadocs say someth

Re: [TEST] JTest 4.4 and Ant

2002-09-11 Thread A Competitor
Dear Stefan, >From: Stefan Bodewig <[EMAIL PROTECTED]> >Is JTest a competitor to Ant? Does it build projects? > > > JTest reports an incredible amount of runtime errors in Ant No, JTest is a Quality Assurance tool that performs static- and dynamic analysis on Java projects. >would be nice to

Re: [TEST] JTest 4.4 and Ant

2002-09-11 Thread Stefan Bodewig
On Wed, 11 Sep 2002, A. Competitor <[EMAIL PROTECTED]> wrote: > I have evaluated JTest version 4.5 and with respect to Ant: Is JTest a competitor to Ant? Does it build projects? > JTest reports an incredible amount of runtime errors in Ant would be nice to see the detailed report, so we could

[TEST] JTest 4.4 and Ant

2002-09-11 Thread A Competitor
I have evaluated JTest version 4.5 and with respect to Ant: JTest reports an incredible amount of runtime errors in Ant (copied part of the JTest report): [ 255 ] Uncaught Runtime Exceptions [ 165 ] java.lang.NullPointerException [ 14 ] java.lang.ClassNotFoundException [ 1 ] java.io.IOExceptio

Test

2002-09-08 Thread suogen
test -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: System.getProperties() returns an empty list when unit test runwithin Ant

2002-08-19 Thread Jerome Lacoste
fails when I run it >> within Ant, while it doens't fail when I run it directly from the >> same VM. >> I've had trouble like that before and they are usualy environment >> related but this one is very strange: >> Here's the code of my Unit Test:

Re: System.getProperties() returns an empty list when unit test runwithin Ant

2002-08-16 Thread Erik Hatcher
#x27;ve had trouble like that before and they are usualy environment > related but this one is very strange: > Here's the code of my Unit Test: > > public void testSystemGetProperties() { >// Skip debug code to printout System.getProperties() >... >if (System.

RE: System.getProperties() returns an empty list when unit test runwithin Ant

2002-08-16 Thread Dominique Devienne
e- From: Jerome Lacoste [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:24 AM To: [EMAIL PROTECTED] Subject: System.getProperties() returns an empty list when unit test runwithin Ant Hi Anties, I've got this strange problem: one of my UnitTest fails when I run it within Ant,

System.getProperties() returns an empty list when unit test runwithin Ant

2002-08-16 Thread Jerome Lacoste
Hi Anties, I've got this strange problem: one of my UnitTest fails when I run it within Ant, while it doens't fail when I run it directly from the same VM. I've had trouble like that before and they are usualy environment related but this one is very strange: Here's the

RE: how to see system.out of a junit case test??

2002-07-02 Thread Andrew.Beacock
> How do I do to make appear the system.out.println statements > from junit test case? Use the task's 'printsummary' parameter and set it equal to "withOutAndErr". Andy. -- Andrew Beacock Principal Software Engineer Nokia NMP/MSW/SSP/MMS > -Origina

how to see system.out of a junit case test??

2002-07-02 Thread Emerson Cargnin - MSA
How do I do to make appear the system.out.println statements from junit test case? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

not finding the test class

2002-05-28 Thread Emerson Cargnin - MSA
I managed to run junit task, but i just can't manage to make it found the test class, it's compiled  under test dir  (${tests.dir}) and i checked that the class is indeed there.     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec     [junit] Caused an ERR

RE: FTP - Could not date test remote file - Transfers all

2002-05-09 Thread Oliphant-nonTRW, Erich
riginal Message- From: Jay Eskandarian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 08, 2002 10:44 AM To: Ant-User (E-mail) Subject: FTP - Could not date test remote file - Transfers all Enviromment: ant 1.4 jdk 1.4 os: win2k ftpserver: microsoft ftp service (Version 5.0)

batchtest - getting test classes fileset from a jar

2002-04-29 Thread Emily Bache
Hi, I'm using the junit batchtest optional task, and my target looks like this: For this to work, so far as I can tell my class files have to be in a directory structure. Is it possible to hav

Re: Tstamp Test Files

2002-03-30 Thread Diane Holt
kage structure begins. In other words, you can have: /rootdir/sub1/sub2/subN... so long as eventually you get to test/foo/*.java, for .java files declared to be part of the test.foo package, and you point to the directory the "test" directory lives in. Diane

Re: Tstamp Test Files

2002-03-30 Thread Yiu Wing
[...] > > In short, I'd like to have the modified test files compiled only. > > See the FAQ entry: > http://jakarta.apache.org/ant/faq.html#always-recompiles > to make sure that's not the real issue. > Thanks for the response. And I apologise for not checkin

Re: Tstamp Test Files

2002-03-30 Thread Diane Holt
--- Yiu Wing <[EMAIL PROTECTED]> wrote: > I'm keep a separate source code directory tree for all my junit test > files. So in my build.xml I have > > > > > > > > My init target includes a task. When I run "compiletest" > ta

Tstamp Test Files

2002-03-30 Thread Yiu Wing
Hello all, I'm keep a separate source code directory tree for all my junit test files. So in my build.xml I have My init target includes a task. When I run "compiletest" target, every files in the test source tree get compiled even they haven't been m

RESOLVED : Test if directory is empty

2002-03-21 Thread Euan Guttridge
Thanks Diane, Dominique and Stephan. Resolved as below. -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 19:57 To: Ant Users List Subject: RE: Test if directory is empty --- Dominique Devienne <[EMAIL PROTECTED]> wrote: > Haven't tried

Re: how to test existance of file based on pattern

2002-03-21 Thread stephan beal
On Wednesday 20 March 2002 22:32 pm, Dominique Devienne wrote: > Diane just answered that one today, related to something else... She's > amazing ;-) Every time i come across a problem using Ant, i think, "i'll bet Diane would know..." > But, doesn't handle the fact that there's no sources to

Re: how to test existance of file based on pattern

2002-03-21 Thread stephan beal
On Wednesday 20 March 2002 22:22 pm, you wrote: > I have the following need that I couldn't work out by myself so far: > - In order to fire a target I need to make sure at least one Test*.java > exist anywhere in my test source hierarchy. > > Naively I tried the followi

Re: Test if directory is empty

2002-03-21 Thread stephan beal
a fileset into a printable list. And you > could use it, in combination with , to test for an empty > directory -- eg: Excellent. Thanks :) > > > > > So the 'unless' doesn't get checked until after any dependent targets are run? (ooops. i think i h

Re: how to test existance of file based on pattern

2002-03-20 Thread Stefan Bodewig
On Wed, 20 Mar 2002, Zart Colwing <[EMAIL PROTECTED]> wrote: > I have the following need that I couldn't work out by myself so far: > - In order to fire a target I need to make sure at least one > Test*.java exist anywhere in my test source hierarchy. Maybe your target can d

RE: how to test existance of file based on pattern

2002-03-20 Thread Dominique Devienne
2002 1:57 PM To: Ant Users List Subject: RE: Test if directory is empty --- Dominique Devienne <[EMAIL PROTECTED]> wrote: > Haven't tried it myself, but from the doc I would say that > would have converted your fileset the way you wanted. FWIW, --DD Yep -- will turn

how to test existance of file based on pattern

2002-03-20 Thread Zart Colwing
I have the following need that I couldn't work out by myself so far: - In order to fire a target I need to make sure at least one Test*.java exist anywhere in my test source hierarchy. Naively I tried the following rule, but without success because is only capable of testing the existen

RE: Test if directory is empty

2002-03-20 Thread Diane Holt
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: > Haven't tried it myself, but from the doc I would say that > would have converted your fileset the way you wanted. FWIW, --DD Yep -- will turn a fileset into a printable list. And you could use it, in combination with , to

RE: Test if directory is empty

2002-03-20 Thread Dominique Devienne
Haven't tried it myself, but from the doc I would say that would have converted your fileset the way you wanted. FWIW, --DD -Original Message- From: stephan beal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 5:31 AM To: [EMAIL PROTECTED] Subject: Re:

Re: Test if directory is empty

2002-03-20 Thread stephan beal
On Wednesday 20 March 2002 11:51 am, Euan Guttridge wrote: > I would like to be able to test if a directory is empty, and if it is not > empty then perform a task. Any suggestions appreciated. What i did was write a task which gives me the list of files in a directory as a string. If the

Test if directory is empty

2002-03-20 Thread Euan Guttridge
Hi, I would like to be able to test if a directory is empty, and if it is not empty then perform a task. Any suggestions appreciated. Thanks.

Re: compiling test cases separately

2002-03-05 Thread Erik Hatcher
: Tuesday, March 05, 2002 7:27 AM Subject: compiling test cases separately > > > hi > > i have my directory like this.. > > c:\samples\src\main with com\company\myClass.java (my source file) > c:\samples\src\test with com\company\myClassTest.java (my junit testcase >

compiling test cases separately

2002-03-05 Thread Ram Kumar
hi i have my directory like this.. c:\samples\src\main with com\company\myClass.java (my source file) c:\samples\src\test with com\company\myClassTest.java (my junit testcase generated already) i want to compile\keep the files separately in c:\samples\build\classes and c:\samples\build

batch test problem with org.w3c.dom.Node class

2002-02-27 Thread Srinivas Velidanda
Hi, I am getting java.lang.Linkage Error when using org.w3c.dom.Node class in some of my source files. Above error is coming when i am trying to run the TestCases using batchtest task, and then trying to generate junit reports. The part of build xml which contains the junit task is as foll

Re: Is there any way to run a single test _method_ with ?

2002-02-08 Thread Steve Loughran
- Original Message - From: "Phil Surette" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 2:11 PM Subject: RE: Is there any way to run a single test _method_ with ? > Thanks for the info, but

RE: Is there any way to run a single test _method_ with ?

2002-02-08 Thread Phil Surette
between test runs in some static variables which are hidden from me (private). -Original Message- From: Ylan Segal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 4:54 PM To: Ant Users List Subject: RE: Is there any way to run a single test _method_ with ? Phil, > The reaso

RE: Is there any way to run a single test _method_ with ?

2002-02-08 Thread Ylan Segal
Phil, > The reason I want to do this is that there is some static > cruft left around by a class used by the tests which > messes up subsequent tests, so I'd like to run each > test method separately with fork='true'. > As do not think that you can do what you want

Is there any way to run a single test _method_ with ?

2002-02-08 Thread Phil Surette
I typically write a single JUnit class with several related test methods and common setUp/tearDown methods, and a suite method that glomps all the tests together autointrospectively. for instance: class MyTest extends TestCase { public void testNormalRequest(){...} public void

Re: test environment variable and if statement

2002-02-06 Thread Erik Hatcher
- Original Message - From: "Ray Tayek" <[EMAIL PROTECTED]> > i was just looking at cactus's build.xml. seems like ant will pick up a > build.properties in your current directory first. Ant won't automatically do that you have to have specified for that to happen. > >As for junit.ja

Re: test environment variable and if statement

2002-02-05 Thread Ray Tayek
At 07:17 AM 2/5/02 -0500, you wrote: >I think this is the wrong use of personally. ... i was just looking at cactus's build.xml. seems like ant will pick up a build.properties in your current directory first. >... >As for junit.jar - it really should live in ANT_HOME/lib (or system >classpat

Re: test environment variable and if statement

2002-02-05 Thread Erik Hatcher
used to ingrain such confusing things into memory! :) Corrections to this are more than welcome. Erik - Original Message - From: "Michael J McGonagle" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 3:12 P

Re: test environment variable and if statement

2002-02-05 Thread Michael J McGonagle
Erik Hatcher wrote: > > Also, just for the record :), properties set from the command-line are not > quite equivalent to properties set from . -D > properties (and now -propertyfile ones) are more(?) immutable. That is quite a large cat to just let out of the bag without explaination, especiall

Re: test environment variable and if statement

2002-02-05 Thread Erik Hatcher
rovide that sort of "switching" capability? As for junit.jar - it really should live in ANT_HOME/lib (or system classpath) since Ant's VM needs it for . Erik - Original Message - From: "Ray Tayek" <[EMAIL PROTECTED]> To: "Ant Users List" <[EM

Re: test environment variable and if statement

2002-02-05 Thread Erik Hatcher
st" <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 1:53 AM Subject: Re: test environment variable and if statement > --- Erik Hatcher <[EMAIL PROTECTED]> wrote: > > - Original Message - > > From: "Michael J McGonagle" <[EMAIL PROTECTED]>

Re: test environment variable and if statement

2002-02-05 Thread Ray Tayek
Task +User task: antstructure org.apache.tools.ant.taskdefs.AntStructure +User task: pvcs org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs +User task: javah org.apache.tools.ant.taskdefs.optional.Javah +User task: p4counter org.apache.tools.ant.taskdefs.optional.perforce.P4Co

Re: test environment variable and if statement

2002-02-04 Thread Steve Loughran
> what i would like to do is to set a property called pathToMyJar to be one > thing or another depending on some boolean. > > then i could say: and > build up classpaths. look at more closely; you can set the value of the assignment to whatever you want. Also the way works, the first assignm

Re: test environment variable and if statement

2002-02-04 Thread Diane Holt
--- Erik Hatcher <[EMAIL PROTECTED]> wrote: > - Original Message - > From: "Michael J McGonagle" <[EMAIL PROTECTED]> > > Ok, now tell me if this is doable with Ant? I seem to remember reading > > (skimming) that property files can be loaded and used by tasks as > > their parameters. > > Y

Re: test environment variable and if statement

2002-02-04 Thread Ray Tayek
At 06:06 PM 2/4/02 -0800, you wrote: >--- Ray Tayek <[EMAIL PROTECTED]> wrote: > > what is >See: > http://jakarta.apache.org/ant/manual/CoreTasks/condition.html i got this to work: on dos it mumbles: C:\TMP, true, and isUnix. but it looks like the if's are onl

Re: test environment variable and if statement

2002-02-04 Thread Ray Tayek
At 09:13 PM 2/4/02 -0500, you wrote: >... > > > > > ... > > ant -Dhelper.jar= that works fine! thanks --- ray tayek http://home.earthlink.net/~rtayek/ actively seeking telecommuting work orange county java users group http://www.ocjug.org/ hate spam? http://samspa

Re: test environment variable and if statement

2002-02-04 Thread Ray Tayek
At 06:06 PM 2/4/02 -0800, you wrote: >--- Ray Tayek <[EMAIL PROTECTED]> wrote: > > what is >See: > http://jakarta.apache.org/ant/manual/CoreTasks/condition.html ... far out! - all kinds of good things in there thanks --- ray tayek http://home.earthlink.net/~rtayek/ actively seeking telecommu

Re: test environment variable and if statement

2002-02-04 Thread Erik Hatcher
- Original Message - From: "Michael J McGonagle" <[EMAIL PROTECTED]> > This thread is very timely for me, I have been thinking about this, not > so much about using environment variables. I have a GUI for a command > line to a program that has numerous options. I would like to be able to

Re: test environment variable and if statement

2002-02-04 Thread Michael J McGonagle
Diane Holt wrote: > > --- Erik Hatcher <[EMAIL PROTECTED]> wrote: > > Ignore the shell/bat script troll > > > > Ok, from an environment variable: > > > > > > > > > > > > > > Better? No , no shell script (well, ok, ant.bat/.sh) , nice > > and simple. > > But you don't r

Re: test environment variable and if statement

2002-02-04 Thread Erik Hatcher
atcher" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 9:30 PM Subject: Re: test environment variable and if statement > > - Original Message - > From: "Diane Holt" <[EMAIL PROTECTED]> > >

Re: test environment variable and if statement

2002-02-04 Thread Erik Hatcher
- Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> > But you don't really want to rely on environment variables that are just > (supposedly) set, do you? IMO, that's even scarier than hard-coding full > paths in the build-file (which I'm also not altogether for, but it's > bette

Re: test environment variable and if statement

2002-02-04 Thread Diane Holt
--- Erik Hatcher <[EMAIL PROTECTED]> wrote: > Ignore the shell/bat script troll > > Ok, from an environment variable: > > > > > > > Better? No , no shell script (well, ok, ant.bat/.sh) , nice > and simple. But you don't really want to rely on environment variables th

Re: test environment variable and if statement

2002-02-04 Thread Erik Hatcher
Erik - Original Message - From: "Ray Tayek" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 8:59 PM Subject: Re: test environment variable and if statement > At 08:44 PM 2/4/02 -0500, you wrote: > >How about using

Re: test environment variable and if statement

2002-02-04 Thread Erik Hatcher
MAIL PROTECTED]> Sent: Monday, February 04, 2002 9:05 PM Subject: RE: test environment variable and if statement > At 08:52 PM 2/4/02 -0500, you wrote: > >Suggestion, > > > >Create a KSH script to do your Unix building or compiling of > >a script and on Windows create a

Re: test environment variable and if statement

2002-02-04 Thread Erik Hatcher
lt;[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 8:52 PM Subject: RE: test environment variable and if statement > Suggestion, > > Create a KSH script to do your Unix building or compiling of > a script and on Windows create a .bat file to do what you > need. > > .bat fil

Re: test environment variable and if statement

2002-02-04 Thread Diane Holt
--- Ray Tayek <[EMAIL PROTECTED]> wrote: > what is http://jakarta.apache.org/ant/manual/CoreTasks/condition.html Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -

RE: test environment variable and if statement

2002-02-04 Thread Ray Tayek
At 08:52 PM 2/4/02 -0500, you wrote: >Suggestion, > >Create a KSH script to do your Unix building or compiling of >a script and on Windows create a .bat file to do what you >need. that's sort of what i have now. but it's a pain to maintain two files that do the same thing. i was hoping to put th

Re: test environment variable and if statement

2002-02-04 Thread Ray Tayek
At 05:47 PM 2/4/02 -0800, you wrote: >--- Ray Tayek <[EMAIL PROTECTED]> wrote: > > i am trying to put in different classpaths depending on whether i am on > > windoze or linux. > > > > something like: > > > > if ${unix}=true > > then > > else > > fi > > > > >

Re: test environment variable and if statement

2002-02-04 Thread Ray Tayek
operties and other such techniques >and use indirection to make life much more pleasant and controllable! :) ... ok thanks >- Original Message - >From: "Ray Tayek" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, February 04, 2002 8:36 PM >

Re: test environment variable and if statement

2002-02-04 Thread Diane Holt
--- Ray Tayek <[EMAIL PROTECTED]> wrote: > i am trying to put in different classpaths depending on whether i am on > windoze or linux. > > something like: > > if ${unix}=true > then > else > fi Diane = ([EMAIL PROTECTED]) ___

RE: test environment variable and if statement

2002-02-04 Thread Robert Hewlett
Suggestion, Create a KSH script to do your Unix building or compiling of a script and on Windows create a .bat file to do what you need. .bat file to compile: javac -d . -classpath .;c:\lbar\helper.jar;c:\lbar\classes Query.java .bat file to Run: java -classpath .;c:\lbar\helper.jar;c:\lbar\c

Re: test environment variable and if statement

2002-02-04 Thread Erik Hatcher
- From: "Ray Tayek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 8:36 PM Subject: test environment variable and if statement > hi, can could someone please give me an example of examining an environment > variable and the using an i

test environment variable and if statement

2002-02-04 Thread Ray Tayek
hi, can could someone please give me an example of examining an environment variable and the using an if? i am trying to put in different classpaths depending on whether i am on windoze or linux. something like: if ${unix}=true then else fi or maybe classpath has an attru

RE: Task to test for empty directory

2002-01-18 Thread Daniel Hoppe
Thanks for the tip, I'll have a look at it. Daniel > -Original Message- > From: Iñigo Serrano [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 7:34 PM > To: Ant Users List > Subject: RE: Task to test for empty directory > > > Hello > >

RE: Task to test for empty directory

2002-01-17 Thread Iñigo Serrano
sday, January 16, 2002 11:05 PM Subject: Task to test for empty directory > Hi all, > > I'm searching for a possibility to test for empty directories, something > like a modified task. The archives show that this has been asked > for a few times, but no solutions yet. >

RE: Task to test for empty directory

2002-01-17 Thread Euan Guttridge
Agree - this would also be very useful to me. -Original Message- From: Daniel Hoppe [mailto:[EMAIL PROTECTED]] Sent: 16 January 2002 22:05 To: '[EMAIL PROTECTED]' Subject: Task to test for empty directory Hi all, I'm searching for a possibility to test for empty directo

Task to test for empty directory

2002-01-16 Thread Daniel Hoppe
Hi all, I'm searching for a possibility to test for empty directories, something like a modified task. The archives show that this has been asked for a few times, but no solutions yet. Do you think this might be a useful addition to or should I rather implement an own task for this? C

test subscribe

2001-12-27 Thread John Volkar
sorry for the test -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: JUnit task: setUp() called before every test method

2001-12-16 Thread Stephane Bailliez
. Depends on the case. Since you are probably setting values or whatever in each test method, I would not want to reconfigure it each time the object I'm testing or get an unstable object. the setUp method does this for you otherwise you could inherit values from a preceding test method and since

Re: JUnit task: setUp() called before every test method

2001-12-16 Thread Rolf Katzenberger
gt;once before all the testX() methods are called. > >This appears quite wrong, but I haven't looked into whether >it's an ant junit task thing or a junit thing. Any ideas >as to what I'm doing wrong? This behaves as defined, setUp() is called before every test (i.e.

JUnit task: setUp() called before every test method

2001-12-16 Thread Guillory, Stanford
ant junit task thing or a junit thing. Any ideas as to what I'm doing wrong? I use the batch test feature of junit, and use the dynamic test suite construction method, i.e, every TestCase class has a suite() method that supplies the name of the TestCase class so that all the methods starting

Re: FYI - Code to automatically add Test classes to a TestSuite.

2001-12-16 Thread Stephane Bailliez
David Jencks [EMAIL PROTECTED] wrote: > Anyone know how to fix this so tests that time out are noticed as > having failed??? This is unfortunately not possible without completely rewriting the tasks because a formatter is managed by a TestRunner thus if your runner is killed, it can't write an

Re: FYI - Code to automatically add Test classes to a TestSuite.

2001-12-14 Thread David Jencks
Well, I don't know much about it, but here is an example from the jboss test suite. Anyway, the batchtest el

Re: FYI - Code to automatically add Test classes to a TestSuite.

2001-12-14 Thread T Master
- Original Message - From: "David Medinets" <[EMAIL PROTECTED]> > I have no idea. What are batchtests and wildcards? Sometimes it's easier me > to code a solution than to read the documentation Don't worry. My quote of the week being spread around the office is: "It's not ignorance i

Re: FYI - Code to automatically add Test classes to a TestSuite.

2001-12-14 Thread T Master
- Original Message - From: "David Medinets" <[EMAIL PROTECTED]> > I have no idea. What are batchtests and wildcards? Sometimes it's easier me > to code a solution than to read the documentation That sounds so funny! :D -- To unsubscribe, e-mail: For ad

RE: FYI - Code to automatically add Test classes to a TestSuite.

2001-12-14 Thread David Medinets
> -Original Message- > From: David Jencks [mailto:[EMAIL PROTECTED]] > > What advantage does this offer over using batchtests with wildcards? I have no idea. What are batchtests and wildcards? Sometimes it's easier me to code a solution than to read the documentation David Medinets, Con

Re: FYI - Code to automatically add Test classes to a TestSuite.

2001-12-14 Thread David Jencks
What advantage does this offer over using batchtests with wildcards? david jencks On 2001.12.14 10:04:34 -0500 David Medinets wrote: > This note is for users of the Ant build tool. I've modified an AllTests > class to automatically add Test classes to a TestSuite by recursively &

FYI - Code to automatically add Test classes to a TestSuite.

2001-12-14 Thread David Medinets
This note is for users of the Ant build tool. I've modified an AllTests class to automatically add Test classes to a TestSuite by recursively checking a directory hierarchy for classes with "test" or "Test" in their names. Contrary to suggestions, I like having all

RE: build succesfull...test failed

2001-12-05 Thread Scott Jeppesen
Crap sorrywrong list. -Original Message- From: Scott Jeppesen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 10:29 AM To: 'Ant Users List' Subject: build succesfull...test failed Hello, I'm using Velocity 1.1.I just ran ant in the velocity d

build succesfull...test failed

2001-12-05 Thread Scott Jeppesen
Hello, I'm using Velocity 1.1.I just ran ant in the velocity directory and it ran fine. However, when I ran "ant test" it generated this errorwhat's wrong? Test-template: [echo] Running Template tests... [java] Class not found "org.apache.veloc

RE: Failing Junit test only under Ant

2001-11-22 Thread Stephane Bailliez
> -Original Message- > From: Steve Loughran [mailto:[EMAIL PROTECTED]] > > > I am confused here. > > Fixing your unit tests to work reliably regardless of user > time zone *is* > the elegant solution. The fact that your code doesnt work in > all timezones > seems like a defect to me,

Re: Failing Junit test only under Ant

2001-11-21 Thread Steve Loughran
TED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 21, 2001 11:45 Subject: Re: Failing Junit test only under Ant > Hello, > > Does anyone know if there is a more elegant solution to this problem? > I thought of doing this, but I was hoping there is a better, more prog

Re: Failing Junit test only under Ant

2001-11-21 Thread otisg
hack why not add the unset command to ANT.bat or ant.sh (for > the latter you can put it in ~/.antrc). > > Better would be to fix your junit test case so that it works regardless of > the TZ of the user. > > - Original Message - > From: <[EMAIL PROTECTED]>

Re: Junit test reports

2001-11-15 Thread Peter Davis
junit3.7. Here is a sample opf my build.xml > > > > > > >location="${myenv.ANT_HOME}/lib/optional.jar"/> >location="${myenv.ANT_HOME}/lib/ant.jar"/> >

RE: Junit test reports

2001-11-14 Thread Alan Pearlman Spencer
[mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 07:51 To: 'Ant User' Subject: Junit test reports Hello, I'm trying to automise our Junit tests with Ant. Taht works but 'they' want a report every morning of the tests that ran during the night. I saw that there are some rep

Junit test reports

2001-11-13 Thread Kazandjian Erik
nit.JUnitTestRunner.fireStartTestSu ite(JUnitTestRunner.java:279)[junit]at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu nner.java:200) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTes

  1   2   >