Re: Garbage collection question

2005-04-05 Thread Robert r. Sanders
Garbage collection is non-deterministic - the JVM gets to decide when to run it. My guess would be that ANT has a reference to ALL the files and doesn't let go of any of them until all the tasks have run. You can probably get around this with a little re-coding; I could be wrong, but I think

Re: Counting files in a dir

2005-04-05 Thread Fermin Da Costa Gomez
Matt Benson wrote: --- Fermin Da Costa Gomez <[EMAIL PROTECTED]> wrote: Hi, What would be the best way to do the following: 1. Going into a directory (this is ok) 2. Counting the number of files of type x (getting files is ok, *counting* is an issue) With Ant 1.6.3 (now in beta) you could

Re: Counting files in a dir

2005-04-05 Thread Fermin Da Costa Gomez
Ivan Ivanov wrote: Fermin, you should check[1] to see the exact versions of the third party libraries. Thank you. I found that out by reading through the apache site and doing some more googling. Turns out that i needed 3 additional jars of which the Rhino one was unusal. But, i'v got it runnin

Garbage collection question

2005-04-05 Thread Dave Bartmess
Does the garbage collection have a "time-out" it's based on, or is it strictly the lack of references to the classes? I'm seeing problems with memory errors when doing a series of tasks on a set of files, and running out of memory. But if I run the tasks on the files one at a time manually (throug

RE: warnings when calling ant

2005-04-05 Thread Conelly, Luis (GE Energy, Non GE, GENE)
Thanks Matt!! I had overriden my $PATH variable and forget to add the /usr/bin path (where uname and false cmds are in my box). Once I fixed this, everything went clear. Thanks again. Luis -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 1:44 P

Re: warnings when calling ant

2005-04-05 Thread Matt Benson
Hmm.. looks like your shell is acting funny? Perhaps /bin is missing from your PATH env. variable. This is where the uname and false executables live on the (Intel) SunOS 5.8 box I am looking at. Probably something has screwed up your PATH and you want to log out/log in or rerun .profile or some

warnings when calling ant

2005-04-05 Thread Conelly, Luis (GE Energy, Non GE, GENE)
Hi there, I am a bit confuse here, since I´ve never seen this kind of behavior with ant. I am invoking ant from a shell script (the usual stuff is set, such as JAVA_HOME, ANT_HOME, no classpath defined) and I get following messages: -- /xyz/apache-ant-1.6.2/bin/ant: fals

Re: Counting files in a dir

2005-04-05 Thread Matt Benson
--- Fermin Da Costa Gomez <[EMAIL PROTECTED]> wrote: > Hi, > > What would be the best way to do the following: > 1. Going into a directory (this is ok) > 2. Counting the number of files of type x (getting > files is ok, *counting* is an > issue) With Ant 1.6.3 (now in beta) you could do this:

RE: Build with Java 1.4.2

2005-04-05 Thread Payette, Don J
Well, I got out of Eclipse and used build.bat to run ant on the build.xml file, and it worked fine. This verifies that it is Eclipse that is doing something. Thanks. Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by t

RE: Installing ant ftp task on suse linux 9.2

2005-04-05 Thread
Sorry, the optional ftp task still does not work, even if the jars are in the lib directory. I noticed there is a /etc/ant.conf file, that seems to list the installed optional packages. Does anyone know how I can inegrate an optional (ftp) task on a Suse Linux 9.2 system, where ant was installed

RE: Installing ant ftp task on suse linux 9.2

2005-04-05 Thread
That's strange. My lib directory is completely empty, so I will try to add them. Other optional tasks like junit work well, because yast installed the package. But I don't know where :-) I'll try it - thanx so far! sven -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTE

Re: Counting files in a dir

2005-04-05 Thread Ivan Ivanov
Fermin, you should check[1] to see the exact versions of the third party libraries. I use successfully such scripts with Eclipse, but I do not used the ant distribution bundled with Eclipse. Instead, I have "standalone" ant installation on my disk and I configured Eclipse to use it. I point Ant Hom

Re: Reasonable size on ANT_OPTS

2005-04-05 Thread Jeffrey E Care
We build WebSphere Application Server with -Xmx512M. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis "Mikael Petterson \(KI/EAB\)" <[EMAIL PROTECTED]> 04/05/2005 03:25 AM Please

Re: Counting files in a dir

2005-04-05 Thread Fermin Da Costa
Thx a lot, much appreciated. I have not been able to run it yet though because running it from eclipse i keep on getting errors. 1st was bsf related, fixed that. Than i got a rhino error, fixed that by stuffing the js.jar in there. Now i get a NoSuchMethod error. Haven't done this one yet. Well,

RE: Installing ant ftp task on suse linux 9.2

2005-04-05 Thread Antoine Levy-Lambert
If you download a full binary version of ant you get these files. If you make your own build of ant, you need oro and commons.net under lib/optional before starting the build. Cheers, Antoine > Nope, I don't. But where do I get them? The ant dependency list does not > show this, or? > > thx, > sve

RE: Installing ant ftp task on suse linux 9.2

2005-04-05 Thread
Nope, I don't. But where do I get them? The ant dependency list does not show this, or? thx, sven Sven Haiges Technology Manager Vodafone Pilotentwicklung GmbH Chiemgaustr. 116 D-81549 Munich Germany Mobile +49 (0)172 8496 359 Fon +49 (89) 95 410 -0 Fax +49 (89) 95 410 -111 mailto:[EMAIL PROTECT

RE: Installing ant ftp task on suse linux 9.2

2005-04-05 Thread Antoine Levy-Lambert
Do you also have all the ant-*.jar in the $ANT_HOME/lib directory ? There is a ant-apache-oro.jar and an ant-commons-net.jar. Do you have them ? Antoine > Hi there, > > I still cant't use the ftp taks on the suse linux 9.2 machine. I copied > the oro and commons-net jar files to /usr/share/ant/li

Re: Counting files in a dir

2005-04-05 Thread Ivan Ivanov
Hello, Fermin, You can do 2. with javascript: $${xmlfiles} is ${xmlfiles} $${txtfiles} is ${txtfiles} In fact, I often need to extract information about files and I thought to do a "lib" of s like the one above to improve reusability. However, I

RE: Installing ant ftp task on suse linux 9.2

2005-04-05 Thread
Hi there, I still cant't use the ftp taks on the suse linux 9.2 machine. I copied the oro and commons-net jar files to /usr/share/ant/lib, but the same error pops up when I execute the build file: ant cannot find the libraries that support the ftp task. is there a special ant-ftp.jar? if so, I di

[ANN] The Apache Ant Project Retires Antidote, the Ant GUI

2005-04-05 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The Antidote subproject was once started to provide a GUI for Ant at a time where IDE support for Ant was far from usable. Unfortunately it never attracted a developer community of its own. At the same time IDE support for Ant has become ubiquitous b

Reasonable size on ANT_OPTS

2005-04-05 Thread Mikael Petterson \(KI/EAB\)
Hi, What is a reasonable size on my Xmx Xms in ANT_OPTS. I have 1.600 source files. //Mikael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Measure memory usage

2005-04-05 Thread Stefan Bodewig
On Tue, 5 Apr 2005, Mikael Petterson <[EMAIL PROTECTED]> wrote: > My problem is that I run out of memory when I run my test ( complile > 1.600 files and run over 5.000 tests). Is there a way to measure > how much memory ant is consuming? You can always ask the Java VM using built-in Java methods

Re: java.lang.RuntimeException: Mismatch - popped element = [target: null] finished target element = [target: null]

2005-04-05 Thread Stefan Bodewig
On Mon, 4 Apr 2005, Robert Lin <[EMAIL PROTECTED]> wrote: > We get this message all of a sudden, I searched through the archive > and saw that others had this problem as well, but I didn't really > see a clear solution on how to debug this. I vaguely recall it had been fixed. Can you give 1.6.3b

Re: Memory usage of targets vs macrodefs?

2005-04-05 Thread Stefan Bodewig
On Mon, 04 Apr 2005, David A. Bartmess <[EMAIL PROTECTED]> wrote: > Are there any comments on the memory usage for using targets vs > macrodefs in the build? The question usually is macrodef vs antcall and macros should consume less memeory, not more. In your situation I'd rather look for a mem

possible to use profiler on ant

2005-04-05 Thread Mikael Petterson \(KI/EAB\)
Hi, I am using ant for build and test our java application. We run into 'java.lang.OutOfMemory' problems when running junit tests. I have made a number of changes without any luck: - Unset classpath - increase ANT Xms and Xmx via ANT_OPTS env. variable. - Using fork in javac. - Increase Xmx in j