RE: cannot connect to socket: Connection refused

2005-02-17 Thread Pritesh Saharey
Thanks its working now, actualy my cvsroot was not set properly. ;-) Quoting [EMAIL PROTECTED]: > Do you need a colon before pserver too? You need one after the portnumber as well, unless 2401 is the default CVS port as Rob implies.--DD > -Original Message- > From: Anderson, Rob (G

Re: Fix/Workaround Needed For Ant 1.6.x and

2005-02-17 Thread Jacob Kjome
Where do you have JUnit.jar? If it isn't in ANT_HOME/lib or user.home/.ant/lib, then that's your problem right there. Otherwise, make sure the nested element contains references to the root directory of both your application and test classes. If none of this works, post one of your ClassNot

Fix/Workaround Needed For Ant 1.6.x and

2005-02-17 Thread Michael Duffy
I must be a dolt. I'm not getting the workaround or fix that makes the task work again in Ant 1.6.x. It used to work magnificently, but since the new class loader design was added I'm getting nothing but ClassNotFoundException when it tries to find my TestCases. (Yes, I set the classpath ins

The Ant way of doing things

2005-02-17 Thread alexander . buccino
Hello, I'm new to Ant I'm trying to figure out the "Ant way" to solve the following problems, and it's really giving me a lot of trouble. I'm trying to take a subset of files in a directory, compare them to a set of files with a different extension in another directory, and compile these files

Re: Ant Jar + Manifest

2005-02-17 Thread Ulf Karlsson
Hello, There are diffrent classes specified: In manifest creation: ie.comp.main.AntTool In actual manifest: ie.dit.comp.anttool.AntToolMain In the filesystem: ie\dit\comp\anttool\AntToolMain In run target: ie.dit.comp.AntTool.main.AntTool Since the run target works, the actual manifest should proba

FAQ: installing on RH ES 3

2005-02-17 Thread Robert Koberg
Hi, If this exists I couldn't find it (I have missed things before...). Q: How do you get ant-1.6x (or versions later than 1.5.2-23) to work on on RedHat ES 3? A: Redhat ES 3.0 comes installed with ant 1.5.2. Even if you have your PATH and ANT_HOME variables set correctly to a later version of a

won't use RSA

2005-02-17 Thread Gili
Hi, I've got a keystore with a signature of type "MD5" (according to keytool) which should mean RSA. Anyway, I use the task against the keystore to sign a JAR file but the SHA-1 hash function is being used. How do I get it to use RSA for hashing instead? As you can guess, I am do

RE: JUnit task problem

2005-02-17 Thread Frank W. Zammetti
Ah, that helped! Turns out the path to my testcase class wasn't there (which it wouldn't have been based on the rest of the build script). That's it, problem solved! Thanks a lot Kajsa! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Th

RE: JUnit task problem

2005-02-17 Thread Dominique Devienne
It used to be that a String-Ctor was required, but with the latest JUnit (3.8.1), you can finally have a Ctor-less testcase, as simple as below. --DD public class TestFoo extends junit.framework.TestCase { public void testFoo() { fail("TODO"); } } PS: Here's what I use. You probably want the fi

RE: JUnit task problem

2005-02-17 Thread Kajsa.Anderson
Ah - I see you don't have a specified - try: That should at least give you a stack trace. For some good info on using JUnit with Ant, see http://www.manning-source.com/books/hatcher/hatcher_ch04.pdf (sample chapter Testing with JUnit, from Java Development with Ant). K

RE: Trick to Run Exec Task with Dir set

2005-02-17 Thread Rick Genter
Use instead of . Value specifies a single command line argument; line specifies all of the command line arguments. -- Rick Genter Principal Engineer Silverlink Communications (781) 272-3080 x242 -Original Message- From: Michael Wang (IT) [mailto:[EMAIL PROT

Trick to Run Exec Task with Dir set

2005-02-17 Thread Michael Wang \(IT\)
Hi, I have the following ant script.

RE: JUnit task problem

2005-02-17 Thread Frank W. Zammetti
I thought of that too... I wasn't sure it it was needed or not so I left it out just to have a slightly simpler class... however, I did try putting it in and it doesn't make the error go away. I'll leave it in for now anyway, but that doesn't seem to be it. -- Frank W. Zammetti Founder and Chief

RE: JUnit task problem

2005-02-17 Thread Kajsa.Anderson
I think your test class needs a constructor (inserted below). > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 11:29 AM > To: user@ant.apache.org > Subject: JUnit task problem > > > Hi again... having a bit of problem with my f

JUnit task problem

2005-02-17 Thread Frank W. Zammetti
Hi again... having a bit of problem with my first attempt at a JUnit task... I have the following test case: import junit.framework.TestCase; public class DisbursementFBTestCase extends TestCase { public void testDisbursementFBTestCase() throws Exception { int answer = 2; assertEquals((

Detecting ant.home

2005-02-17 Thread Longie
Hello, I have managed to get a GUI to listen to the ant lister and show the output on a jtextarea. However when the GUI loads i need to check that ant is installed and that the ant.bat is available. Most of the code i have been using is telling that it is not good to use the exec class. How can i

RE: cannot connect to socket: Connection refused

2005-02-17 Thread Dominique Devienne
Do you need a colon before pserver too? You need one after the port number as well, unless 2401 is the default CVS port as Rob implies. --DD > -Original Message- > From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 10:24 AM > To: Ant Users Lis

RE: cannot connect to socket: Connection refused

2005-02-17 Thread Anderson, Rob (Global Trade)
Your CVSROOT is not set properly. Change it too... ... -Rob Anderson > -Original Message- > From: Pritesh Saharey [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 3:40 AM > To: Ant Users List > Subject: cannot connect to socket: Connection refused > > >

Re: can't use tstamp

2005-02-17 Thread Stefan Bodewig
On Thu, 17 Feb 2005, Dominique Devienne <[EMAIL PROTECTED]> wrote: > Older versions of Ant pre-1.6 (or is that 1.5?) don't accept > arbitrary tasks at the top level. Yes, 1.6.0 was the first one to allow arbitrary tasks at the top level. Stefan --

RE: can't use tstamp

2005-02-17 Thread Dominique Devienne
Please, no personal emails... Older versions of Ant pre-1.6 (or is that 1.5?) don't accept arbitrary tasks at the top level. Put your inside a target, like an "init" one most other targets depend on. --DD > -Original Message- > From: blackwater dev [mailto:[EMAIL PROTECTED] > Sent: Thurs

RE: can't use tstamp

2005-02-17 Thread Dominique Devienne
Probably just a typo around it. Checked your XML. If you don't see it, post your build, and or a slimed down version that reproduces the pb. --DD What version of Ant? > -Original Message- > From: blackwater dev [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 9:45 AM > To: An

can't use tstamp

2005-02-17 Thread blackwater dev
Was the tstamp task added recently? I am using an older version of cvs and get an error of: Unexpected element "tstamp" Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs task emailing on merge

2005-02-17 Thread blackwater dev
How can I have the cvs task email me about merges and not try to do them? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Trouble getting script and scriptdef tasks to work

2005-02-17 Thread alexander . buccino
Oops. My mistake. I took the target out of context and pasted it into another build file. It was complaining that "squares" and "main" were undefined, but now I see that those are the names of the project and another target. If I grab the whole project the example works fine. Thanks for you

RE: Help with Ant

2005-02-17 Thread Michael Wang \(IT\)
Is there a handy way to check if a directory is empty or not? -Original Message- From: Michael Wang (IT) Sent: Thursday, February 17, 2005 9:22 AM To: 'Ant Users List' Subject: RE: Help with Ant Thanks for the quick reply, I will give it a shot. Sorry, more Qs: 1. how to use task, ca

Re: Trouble getting script and scriptdef tasks to work

2005-02-17 Thread Stefan Bodewig
On Thu, 17 Feb 2005, alexander buccino <[EMAIL PROTECTED]> wrote: > It's a little cryptic. It says that if you are using bsf-2.3.0-rc1 > you must use rhino-1.5R3 but that later versions of BSF work with > rhino-1.5R4. As far as I can tell, there are no versions of bsf > after bsf-2.3.0-rc1. Unl

Re: Trouble getting script and scriptdef tasks to work

2005-02-17 Thread alexander . buccino
Sorry about the last message. I hit send by mistake. I was trying to say that I was having trouble getting javascript to work through Ant's Script and ScriptDef tasks, but then I found the notes on library dependencies. It's a little cryptic. It says that if you are using bsf-2.3.0-rc1 you mu

RE: Help with Ant

2005-02-17 Thread Michael Wang \(IT\)
Thanks for the quick reply, I will give it a shot. Sorry, more Qs: 1. how to use task, can I set it to a property and later refer to its value? I wanna keep the value in my build log file. 2. anyone knows what's the best way to keep the build log or the audit log, or just use task? Thanks.

AW: Help with Ant

2005-02-17 Thread Jan . Materne
If the suffix is not known before, you could try a regexp and (AntContrib) Jan > -Ursprüngliche Nachricht- > Von: Michael Wang (IT) [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 17. Februar 2005 15:13 > An: Ant Users List > Betreff: RE: Help with Ant > > Thanks for the help. Loo

RE: Help with Ant

2005-02-17 Thread Michael Wang \(IT\)
Thanks for the help. Looks like using foreach might do the trick, However, how can I get only basename of files? e.g if the files are ABC1.ext, ABC2.ext, ABC3.ext, I need to run the following command 3 times compiler.sh module=ABC1 compiler.sh module=ABC2 compiler.sh module=ABC3 Thanks. MW -

Trouble getting script and scriptdef tasks to work

2005-02-17 Thread alexander . buccino
Hello, I'm trying to get the

Re: [Fwd: Re: How to exclude directories]

2005-02-17 Thread Frank W. Zammetti
Thanks Kajsa, that did the trick exactly! And your assumption was correct, I wanted the source directory, and anything in it excluded. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com > Have you tried source/**/*? I'm assuming you want to ex

find duplicated files in the set of jar files.

2005-02-17 Thread Andrey Solonchuk
Hi! Can you adwise me& I need find duplicated files in the set of jar files. becouse in our ant project we have more then one target, that creates jar files with classes from one common directory, and I need keep eye on havin only one copy of each class when all jars puting together in result pr

cannot connect to socket: Connection refused

2005-02-17 Thread Pritesh Saharey
Hi All, I am trying to checkout the package from CVS using ant from Windows 2000 m/c, my cvs.exe is in path. Below is the snipte of code which Iam using After running the build.xml file it is giving me error like this: [

Re: Not stop build on xslt faillure

2005-02-17 Thread James Fuller
Robert Soesemann wrote: I am using the new xslt2 engine Saxon8. -Original Message- From: James Fuller [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 17. Februar 2005 11:44 To: Ant Users List Subject: Re: Not stop build on xslt faillure Robert Soesemann wrote: Acttually I was looking for a

RE: Not stop build on xslt faillure

2005-02-17 Thread Robert Soesemann
I am using the new xslt2 engine Saxon8. -Original Message- From: James Fuller [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 17. Februar 2005 11:44 To: Ant Users List Subject: Re: Not stop build on xslt faillure Robert Soesemann wrote: >Acttually I was looking for a way inside the functio

Re: Not stop build on xslt faillure

2005-02-17 Thread James Fuller
Robert Soesemann wrote: Acttually I was looking for a way inside the functionality of the xslt task or Ant. Another library would be overkill. which XSLT processor are u using? it is possible to configure error behavior on some of them. hth, Jim Fuller ---

RE: Not stop build on xslt faillure

2005-02-17 Thread Robert Soesemann
Acttually I was looking for a way inside the functionality of the xslt task or Ant. Another library would be overkill. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 17. Februar 2005 11:03 To: user@ant.apache.org Subject: AW: Not stop build on xslt

AW: Not stop build on xslt faillure

2005-02-17 Thread Jan . Materne
Antcontrib´s would be my first try for that ... Jan > -Ursprüngliche Nachricht- > Von: Robert Soesemann [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 17. Februar 2005 10:58 > An: Ant Users List > Betreff: Not stop build on xslt faillure > > Hello, > > Inside my build.xml I use t

Not stop build on xslt faillure

2005-02-17 Thread Robert Soesemann
Hello, Inside my build.xml I use the XSLT task to process hundreds of xsl files. Whenever the xslt fails for one file the whole pipeline stops. Can I tell this task or Ant to just go on preprocessing the next file and skip the error-prone one? Thanks in advance, R. -