Running Junit tests inside the same VM

2002-09-25 Thread Dushyant Shrivastava
Hi, I am trying to run a simple JUnit test inside JBoss server My environment: JBoss : 3.0.2 Ant: 1.5 JDK : 1.4.0_01 JUnit :3.8.1 Now my testcase has a simple test which tries to talk to the local interface of a session bean running inside JBoss. I am aware of the fact that to be able to

Re: cvs problems with ant 1.5 on Windows XP

2002-09-25 Thread Stefan Bodewig
On Wed, 25 Sep 2002, Carl Schumann <[EMAIL PROTECTED]> wrote: >> [cvs] Caught exception: CreateProcess: cvs -q update -d gov >> error=2 this usually means the cvs executable is not in your PATH, is it? Stefan -- To unsubscribe, e-mail: For additional co

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Stefan Bodewig
On Wed, 25 Sep 2002, Erik Hatcher <[EMAIL PROTECTED]> wrote: > Actually even in Ant 1.4.1 a task didn't need to extend from Task > either, Actually even in Ant 1.1 a task didn't need to extend from Task either. 8-) I think it almost never had to, let me see, TaskAdapter has been added to Ant's

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Stefan Bodewig
On Wed, 25 Sep 2002, Ryan Cuprak <[EMAIL PROTECTED]> wrote: > To accomplish this, you need to write a param class yes > that extends DataType, no, this is not required. > has a default constructor not necessarily > and setter/getter methods for the attributes. yes. > In the mytask (e

Re: using the ftp task in ant via java not working

2002-09-25 Thread Klara Ward
Well, obviuosly I had to set the classpath specifically java (with -classpath)..), ant looks at the CLASSPATH but java doesn't (right) How very smart of me.. Klara - Original Message - From: "Klara Ward" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, Septe

Best way to URL encode a path in a property?

2002-09-25 Thread Chris Bailey
I'd like to know the [best] way to do this... I'm using Ant 1.5.1... I have a property that gets set to a path. This path might contain spaces, e.g. "C:\Program Files\Foo". I need to substitute that path into a URL that is passed for an RMI codebase, which is stored in a property in a properti

RE: trouble with single quotes

2002-09-25 Thread Brian Schmitt
thanks, i also found this covered in the mail archive: _quotes in args for exec_. i should have looked there first. -brian -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Wed 9/25/2002 2:19 AM To: [EMAIL PROTECTED] Cc: Subject:Re: trouble wit

Re: Successful users of xmlcatalogs with xmlvalidate in 1.5?

2002-09-25 Thread Erik Hatcher
Jason Untulis wrote: > Thanks for the ideas. Your suggestion helped to determine my problem was > that I was trying to use an defined in the top level, rather > than one embedded in the task. It seems that, while > s are allowed on the top level and can be used by tasks, > classpaths cannot be s

Re: How do people keep track of version information?

2002-09-25 Thread Robert r. Sanders
We're a very small in house shop. We use CVS, and have had similar concerns. We looked at Maven, but it seemed to be a lot of overhead, in addition every individual many need to work on any of several projects in very short succession, and the structure just didn't seem right. For now we ar

Token attribute of the task

2002-09-25 Thread M Damon Hill
Easy question. Using Ant 1.5.1Alpha, and I am using the task to update a particular file. What I want to accomplish is search the given file for a specified token, replace it, and then use that modified file to update a jar file. Here is the problem, the given token that I want to replace in t

Re: Properties are causing problem in 1.5

2002-09-25 Thread Mark R. Diggory
Here's my error. Buildfile: build.xml error_analysis: BUILD FAILED file:C:/cagn/WEB-INF/examples/BatchExample/build.xml:23: java.lang.NumberFormatE xception: ${ea_survivalVar} I tried adding dependencies, but it didn't help, plus the property is currently set in the same target as it is used

RE: Properties are causing problem in 1.5

2002-09-25 Thread David McTavish
I had a problem similar to this. What I had to do was make the secondary task a dependency of the first task in order to inherit the property. ie: d. -Original Message- From: Mark R. Diggory [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 3:32 PM To: [

Properties are causing problem in 1.5

2002-09-25 Thread Mark R. Diggory
I didn't get any response from the group so I'm reposting this message: -Mark Hello all, I'm working with nested properties in some custom tasks. The property "ea_survivalVar" is supposed to get set and then the the task "beta" is supposed to pick up its value. (See below) These work fine in 1

RE: cvs problems with ant 1.5 on Windows XP

2002-09-25 Thread Good, Brian
FYI, this looks a lot like the error I got with PVCS and Win2K that I posted about yesterday and the day before. For me it only happens with j2sdk1.4.1 and 1.4.0, but not with 1.3. Brian -Original Message- From: Carl Schumann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 200

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Erik Hatcher
I would recommend *not* extending from DataType unless you have some reusability need for these nested elements and wish to define them outside of your task. Erik Ryan Cuprak wrote: > To accomplish this, you need to write a param class that extends DataType, > has a default construct

RE: [Q:] Writing a simple Ant task?

2002-09-25 Thread Dominique Devienne
I don't think so... I tried it with 1.4.1, and it didn't work. --DD -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:46 PM To: Ant Users List Subject: Re: [Q:] Writing a simple Ant task? Actually even in Ant 1.4.1 a task didn't need

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Erik Hatcher
Actually even in Ant 1.4.1 a task didn't need to extend from Task either, although it really is best to do so to have access to logging and the Project object. All a task has to do is implement an execute() method :)) Erik Dominique Devienne wrote: > This 'param class that extends Da

SetProxy Ant Task

2002-09-25 Thread Ryan Cuprak
For the SetProxy optional task, how would one go about adding support for authenticating proxies? I am sitting behind a proxy that requires a username/password. Thanks, Ryan -- To unsubscribe, e-mail: For additional commands, e-mail:

cvs problems with ant 1.5 on Windows XP

2002-09-25 Thread Carl Schumann
Hello, I am using a build.xml with a target to do a cvs update. When I invoke this target I get an exception that I am not sure how to address. If anyone could comment on this exception, I would appreciate it. The line with the exception follows, the complete ant output is given at the end of

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Ryan Cuprak
Didn't know that - when would it be good to subclass DataType? -Ryan Cuprak On 9/25/02 2:10 PM, "Dominique Devienne" <[EMAIL PROTECTED]> wrote: > This 'param class that extends DataType' is not necessary. Any class will do > as a sub-element, provided it can be created using an add / addConf

How do people keep track of version information?

2002-09-25 Thread Paul D. Schmidt
Hello, I'm looking for some advice on how people use ant + perforce to keep track of their labels, version info, etc. First of all, I'm a bit confused as to why the propertyfile task sets the properties BEFORE performing its operations and writing out the file. This puts what gets used during th

RE: [Q:] Writing a simple Ant task?

2002-09-25 Thread Dominique Devienne
This 'param class that extends DataType' is not necessary. Any class will do as a sub-element, provided it can be created using an add / addConfigured / create method in the task class. And with Ant 1.5, a task doesn't even need to extend Task, although that doesn't hurt (and is sometimes necessar

Re: Compiling the FTP Optional Task

2002-09-25 Thread Ryan Cuprak
Figured it out. I think I'll go stick my head in the sand. The ant script which copied over the newly built ant libraries wasn't copying the optional.jar over - I had cut and pasted some code (in a properties file)- messing it up. Ant.jar was copied over but not optional.jar. I think it would b

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Erik Hatcher
David M. Smith wrote: > Hi, > > I wanted to write a task along the following lines > > > > > > > > However, I would still like to understand how I would write this task. Welcome to the world of Ant task writers! :) > Looking at the Ant source code, it seems gener

Best way to URL encode a path in a property?

2002-09-25 Thread Chris Bailey
I'd like to know the [best] way to do this... I'm using Ant 1.5.1... I have a property that gets set to a path. This path might contain spaces, e.g. "C:\Program Files\Foo". I need to substitute that path into a URL that is passed for an RMI codebase, which is stored in a property in a properti

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Ryan Cuprak
To accomplish this, you need to write a param class that extends DataType, has a default constructor and setter/getter methods for the attributes. In the mytask (extends Task), you add a method "addParam" which takes your param class. Hopefully that answers your question! -Ryan Cuprak On 9/2

using the ftp task in ant via java not working

2002-09-25 Thread Klara Ward
I tried to run an ant script from java that uses the ftp task and I got: BuildException: file:k:/rockit/qa/AutomationFramework/tests/install/install.xml:16: Could not create task or type of type: ftp. when I use ant outside java with the same ant-file it works fine. I had to have NetComponents.j

debuglevel in javac doesn't work

2002-09-25 Thread Klara Ward
I have this target: and I run: $>ant buildhello -verbose Apache Ant version 1.5.1beta1 compiled on August 19 2002 Buildfile: build.xml Detected Java version: 1.4 in: c:\java\java141\jre Detected OS: Windows 2000 parsing buildfile build.xml with URI = file:Q:/AutomationFramework

Re: Compiling the FTP Optional Task

2002-09-25 Thread Matt Benson
Did you add the netcomponents jar to $ANT_HOME/lib ? -Matt --- Ryan Cuprak <[EMAIL PROTECTED]> wrote: > > Hello, > I am trying to get the optional ftp task to > compile. I have downloaded the > netcomponents package and added it to the classpath > but I am not certain why > it isn't being dete

RE: Using ReplaceRegExp

2002-09-25 Thread EXT / FOCAL MALAPRADE Roland
Thanks, but that's not it. Roland. -Message d'origine- De : Anakreon Mejdi [mailto:[EMAIL PROTECTED]] Envoye : lundi 23 septembre 2002 13:59 A : Ant Users List Objet : Re: Using ReplaceRegExp Is off topic. try EXT / FOCAL MALAPRADE Roland wrote: > Hi everybody, > > nicely reste

RE: Using ReplaceRegExp

2002-09-25 Thread EXT / FOCAL MALAPRADE Roland
Thanks for that. now I wanted to add a value at the end now if i put replace="\100" to add a '00' (reusing the result '\1'), it doesn't work. How can I declare that 00 ? Roland. -Message d'origine- De : Stefan Bodewig [mailto:[EMAIL PROTECTED]] Envoye : lundi 23 septembre 2002 13:23 A

task

2002-09-25 Thread EXT / FOCAL MALAPRADE Roland
Hello everybody, I'm trying to concatenate a group of files 5 by 5. This is because I don't want to have concatenated files that are too big. Is there anyway to do this? alternatively, I could concantenate all the files and then split them. Any thoughts on this? Is there anything like a task ?

Compiling the FTP Optional Task

2002-09-25 Thread Ryan Cuprak
Hello, I am trying to get the optional ftp task to compile. I have downloaded the netcomponents package and added it to the classpath but I am not certain why it isn't being detected. How do I "echo" the classpathref to see what is going on? Thanks, Ryan Cuprak -- To unsubscribe, e-mail:

RE: filtering cvs output

2002-09-25 Thread Ken . Liu
Thanks, that was it. Not sure how I missed that in the manual (I'm kind of new to CVS, though). ps. Your book is awesome! -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 6:58 PM To: Ant Users List Subject: Re: filtering cvs output How

[Q:] Writing a simple Ant task?

2002-09-25 Thread David M. Smith
Hi, I wanted to write a task along the following lines In reading through the documentation trying to write this task I came across copy and filterset which seem to do exactly what I want. However, I would still like to understand how I would write this task. Loo

Re: Task Wierdness

2002-09-25 Thread chayim kirshen
Hm.. I assumed (and quite naturally I thought) that the current working directory would change. But apparently that can't happen. Perhaps I can pass in a basedir property? I'll check the table you've mentioned, I'm assuming this is on the ant task correct? And thanks! --chayim On Wed, 2002-0

RE: Task Wierdness

2002-09-25 Thread chayim kirshen
Hmm... now that's not a bad idea. I hadn't given the exec task any thought here. But I really feel that ant should have a built in method of doing this (hence the ant task). --chayim On Tue, 2002-09-24 at 21:56, Martin Gainty wrote: Chayim Would it not be better to configure the build.xml

RE: Task Wierdness

2002-09-25 Thread chayim kirshen
The directory doesn't actually change to that of the specified dir attribute. This is the behaviour I am expecting as everything is defined as relative paths from these directories. On Tue, 2002-09-24 at 19:19, Jacob Kjome wrote: > What error are you referring to when you say "it breaks"? > > J