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 no, I cannot solve > my problem that way. The p

RE: Could not create JAVA virtual machine

2002-02-08 Thread Adam Murdoch
> -Original Message- > From: Zhendi Su [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 9 February 2002 12:48 PM > To: [EMAIL PROTECTED] > Subject: Could not create JAVA virtual machine > > > Hi, > > I need to use the apply task to run a system command which precompiles > jsp pages (kinda

Could not create JAVA virtual machine

2002-02-08 Thread Zhendi Su
Hi, I need to use the apply task to run a system command which precompiles jsp pages (kinda like weblogic). When I run the command on the command line it was fine, but when I called it within Ant it told me "Could not create Java virtual machine." Anybody ever had a similar error? My task is i

Netbeans/ANT integration and classpath issue

2002-02-08 Thread Jeff Vincent
Could someone please explain something to me. I am trying to use ANT for the first time as it exists in the NetBeans 3.3.1 integrated environment (ANT 1.4.1?). I am trying to use it to generate source from an ANTLR '.g' file using the ANTLR task. However it tells me "java.lang.NoClassDefFoundEr

New release (was Expanding a list of jars)

2002-02-08 Thread Scott Ellsworth
On Friday, February 8, 2002, at 02:34 PM, Scott Ellsworth wrote: > > On Friday, February 8, 2002, at 01:15 PM, Scott Ellsworth wrote: > >> /Users/work/Documents/coding/isis/source/products/first.jar,../products/ >> second.jar > > On further reading of the manual, I am presuming this is because

Re: Expanding a list of jars

2002-02-08 Thread Scott Ellsworth
On Friday, February 8, 2002, at 01:15 PM, Scott Ellsworth wrote: > /Users/work/Documents/coding/isis/source/products/first.jar,../products/second. > jar On further reading of the manual, I am presuming this is because neither an unzip task nor a zipfileset in a zip task understand a comma se

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

2002-02-08 Thread Phil Surette
Thanks for the info, but no, I cannot solve my problem that way. The problem is that things are left lying around the classloader. Actually I am using URL.setContentHandlerFactory, which can only be called once per VM, to load a 3rd party library. The problem is that the library holds onto stuff b

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, but there is a little bit of ho

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 testSecondReque

Re: Critique my optional file copy target, please?

2002-02-08 Thread Scott Ellsworth
On Wednesday, February 6, 2002, at 08:08 AM, Stefan Bodewig wrote: > On Tue, 5 Feb 2002, Scott Ellsworth <[EMAIL PROTECTED]> wrote: > Well, then I think your approach is the best possible one, yes - copy > the sources into a structure that fits Ant's requirements and go ahead > from there. Tha

Can "manifest" take an if?

2002-02-08 Thread Scott Ellsworth
Hi, all. My jar target is starting to look combinatoric because I cannot see how to include an element selectively. For example, I only want to specify a manifest if a main class if one is provided, and not otherwise. Right now, it looks like:

Expanding a list of jars

2002-02-08 Thread Scott Ellsworth
Hi, all. I have a multi stage build using ANT 1.4.1. Each stage produces a jar containing the complete product of that stage. We want to combine the results of several of those stages to build a final jar for customer deployment containing everything in the various earlier jars. For a numbe

RE: java.lang.Win32Process.create exception

2002-02-08 Thread Bendfelt, Tim (MED, nVisia, GEMS-IT)
Looks like javac is not on the path, Forte is trying to compile using JRE. makes sure $JAVA_HOME/bin contains javac or try putting ../java/bin on your windows $PATH explicitly. Tim > java.io.IOException: CreateProcess: javac -nowarn -classpath > "D:\Projects\com\bar\foo\server\sales\ejbcgen;d:

java.lang.Win32Process.create exception

2002-02-08 Thread Sharanya Vemu
Hello all I have ant integrated with forte ant 1.4.1 is the version when i'm trying to build a jar i'm getting this eror can you guys tell me where i am going wrong?? clean: init: Created dir: D:\Projects\com\bar\foo\server\sales\build Created dir: D:\Projects\com\bar\foo\server\sales\build

RE: Sql task ignoring classpath

2002-02-08 Thread Adam Murdoch
> -Original Message- > From: Euan Guttridge [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 9 February 2002 3:47 AM > To: '[EMAIL PROTECTED]' > Subject: Sql task ignoring classpath > > > Hi, > > Ant seems to be refusing to recognise my system classpath (W2K). > I am using > a jdbc:odbc driv

javac NullPointerException--please help

2002-02-08 Thread Zhendi Su
Hi, I am trying to compile a package under a common root. Since I don't want the compile to recompile all the files over and over, I only specified the root directory in my srcdir attribute and then used include/exclude filters, as suggested in the user manual. My javac task is as follows: W

Re: Perforce Integration

2002-02-08 Thread Jesse Stockall
On Fri, 2002-02-08 at 13:02, Trig Gullberg wrote: > I would like to use ant with perforce is there any information on how to do > that? I couldn't find any info in the documentation. I am using ant 1.4.1. > Thanks for any help. It's in the manual. http://jakarta.apache.org/ant/manual/OptionalT

RE: Sql task ignoring classpath

2002-02-08 Thread vlad
The ANT classloader places all in-proc tasks in a special "isolation" mode where only java.* and javax.* classes are visible to tasks. So, anything starting with "sun." is not accessible, even though it is in the bootstrap rt.jar or what have you. Perhaps someone from the dev team can confirm

Perforce Integration

2002-02-08 Thread Trig Gullberg
I would like to use ant with perforce is there any information on how to do that? I couldn't find any info in the documentation. I am using ant 1.4.1. Thanks for any help. -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Sql task ignoring classpath

2002-02-08 Thread Euan Guttridge
Thanks but I need the JDBC:ODBC bridge "sun.jdbc.odbc.JbdcOdbcDriver" in rt.jar, not the Oracle drivers.. I have also tried putting the rt.jar in ant/lib with no luck.. -Original Message- From: Phil Surette [mailto:[EMAIL PROTECTED]] Sent: 08 February 2002 17:52 To: 'Ant Users List' Subje

RE: Sql task ignoring classpath

2002-02-08 Thread Phil Surette
You need to rename classes12.zip to classes12.jar and put it in ant's lib directory. At least that works for me. -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:47 PM To: '[EMAIL PROTECTED]' Subject: Sql task ignoring classpath Hi,

Sql task ignoring classpath

2002-02-08 Thread Euan Guttridge
Hi, Ant seems to be refusing to recognise my system classpath (W2K). I am using a jdbc:odbc driver in an SQL task, the driver is in the system classpath, tested and confirmed. Even with the optional classpath attribute in the SQL task I still get the not found error: D:\build_folder\ux_dev02\an

RE: Howto: add an entry in the META-INF/MANIFEST.MF using ejbjar?

2002-02-08 Thread Eddie Bernard
Yes, this is what I was alluding to. I also thought that extended , but it appears that it doesn't. So the nested element does not work with . There's a good reason for using the task over for creating EJBs. I started a thread on this several weeks ago so I don't want to rehash the same di

RE: Howto: add an entry in the META-INF/MANIFEST.MF using ejbjar?

2002-02-08 Thread Ylan Segal
> Nonetheless, what I ended up doing is creating a template > manifest and used > the token task to generate a manifest. Using and the > "manifest=.../path_to_my_manifest/MANIFEST.MF"" worked for me. > > It's not the most elegant solution, but it does work. I am not sure if this will help you

RE: Howto: add an entry in the META-INF/MANIFEST.MF using ejbjar?

2002-02-08 Thread Eddie Bernard
Funny, I spent countless hours on this same problem several weeks ago. It turns out that Ant has a default manifest that it uses if lieu of a user specified manifest. What I found from the Java specs as well is that the "Manifest-Version" attribute is a mandatory entry. I'm not certain, but thi

Howto: add an entry in the META-INF/MANIFEST.MF using ejbjar?

2002-02-08 Thread Steve Collins
How do I add an entry in the META-INF/MANIFEST.MF using ejbjar? I get this if I use the tag. [ejbjar] WARNING: IOException while adding entry META-INF/MANIFEST.MF to jarfile from /vobs/mybea_is/app/ejbs/agent/META-INF/MANIFEST.MF java.util.zip.ZipException-duplicate entry: META-INF/MANIFEST.

RE: Where is Antidote? - try emacs for now

2002-02-08 Thread Phil Surette
-Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 5:41 AM To: [EMAIL PROTECTED] Subject: Re: Where is Antidote? - try emacs for now >> I'm not a DTD expert... can you do something like this: >> > debug %boolean | "${javac.debug}"; #

Re: Where is Antidote? - try emacs for now

2002-02-08 Thread Stefan Bodewig
On Wed, 6 Feb 2002, Phil Surette <[EMAIL PROTECTED]> wrote: > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] >>having an option that makes all attributes plain CDATA would be the >>only fix - but you'd loose a lot here. > > What about literally adding '${taskname.attributename}' as a valid > va

Re: Packages structure HELP!

2002-02-08 Thread vanja . vlaski
Hello You were right. Thanks a lot! Diane Holt <[EMAIL PROTECTED]> on 08.02.2002 09:18:26 Please respond to "Ant Users List" <[EMAIL PROTECTED]> To:Ant Users List <[EMAIL PROTECTED]> cc: Subject:Re: Packages structure HELP! --- [EMAIL PROTECTED] wrote: > Compiled class files end

Re: Packages structure HELP!

2002-02-08 Thread Diane Holt
--- [EMAIL PROTECTED] wrote: > Compiled class files ending up in build/classes directory instead of > build/classes/com/classifieds? That suggests they don't have a package statement in them. For example: package com.classifieds ; The compiler takes the dot-notation elements of a package statem