Installing ant ftp task on suse linux 9.2

2005-04-04 Thread
Hi there, I would like to install the ftp optional task on a suse 9.2 machine. ant itself is already installed via yast. The ant site says I need jakarta-oro and the commons-net optional libraries. No my question: can I simply drop them in usr/share/ant/lib and ant will find them or do I need to

,, with regular exp

2005-04-04 Thread Rebhan, Gilbert
to whom it may concern ... Some time ago, i asked for a solution to extract a specific part out of a txtfile using ,, with regular expressions. In the meantime after putting aside a while, i've found a solution. So if anybody has a similar problem, it may be helpful. Situation = a given txtfile

Measure memory usage

2005-04-04 Thread Mikael Petterson \(KI/EAB\)
Hi, I am using ant to build and run tests. We run 1.6.2 on Solaris. 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? When I run top I get no pointers about memory consumption.

Re: Build with Java 1.4.2

2005-04-04 Thread Antoine Levy-Lambert
Note that you are using target=1.2 in your build.xml for the javac task. Not sure if it plays a role in your problem. I do not know what are exactly class file major versions 47 and 48. I found only this doc about this type of issue : http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFi

Re: Build with Java 1.4.2

2005-04-04 Thread Antoine Levy-Lambert
Payette, Don J wrote: Another question on this. Does ant use javac from JAVA_HOME\lib\tools.jar to process the javac action. Yes, it does. When ant is started as a command line tool. Tools.jar is put in the classpath by the startup shell script under ant 1.5.x and lower, and by Launcher.java

Re: Modifying a property file

2005-04-04 Thread Erik Hatcher
On Apr 4, 2005, at 5:20 PM, Rohnny Moland wrote: On Monday 04 April 2005 16:08, Erik Hatcher wrote: For the record, is as built-in as any other core tasks. I recommend you consider using it. Thanks for your answer, Erik. I use in ant 1.6.2 and here it seems like it is an optional task. Thats t

Counting files in a dir

2005-04-04 Thread Fermin Da Costa Gomez
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) 3. Depending on the count do something (break out of the target) Items 2. and 3. are bugging me somewhat (esp the coun

RE: Memory usage of targets vs macrodefs?

2005-04-04 Thread Donald Strong
Hi David, We have had memory problems with our build script in the past. JUnit tests, of which we have about 5000, were a problem, particularly generating the reports using XSLT. Eventually we broke the build up by spawning Ant calls. This later allowed us to distribute the build/test suite (about

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

2005-04-04 Thread Robert Lin
Hi, 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. Can anybody help? Thanks. __   Robert Lin Eng. Intern | Blue Jungle

Re: Modifying a property file

2005-04-04 Thread Rohnny Moland
On Monday 04 April 2005 16:08, Erik Hatcher wrote: > For the record, is as built-in as any other core tasks. > I recommend you consider using it. Thanks for your answer, Erik. I use in ant 1.6.2 and here it seems like it is an optional task. Thats the reason why I dont want to use it. Proper

RE: Build with Java 1.4.2

2005-04-04 Thread Payette, Don J
Another question on this. Does ant use javac from JAVA_HOME\lib\tools.jar to process the javac action. Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact

Re: Ant's "find" Equivalent

2005-04-04 Thread Kyle Adams
> > > > > That's the ticket. Kyle _ Kyle Adams | Java Developer | Gordon Food Service | 616-717-6162 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ant's "find" Equivalent

2005-04-04 Thread Matt Benson
--- Kyle Adams <[EMAIL PROTECTED]> wrote: > I'd like to be able to set a property based on a > condition that recursively searches for *.java files > (much the way a "find ./src -name *.java" would) and > then use to > control execution of the javadocs target. That > said, I'm not coming up with

Ant's "find" Equivalent

2005-04-04 Thread Kyle Adams
We have a template build.xml that gets used across multiple projects, though unfortunately not through (it predates Ant 1.6 and is literally an XSL template). Consequently there is no way to override behavior; everything needs to be generic enough to handle edge cases. One of those edge cases

Build with Java 1.4.2

2005-04-04 Thread Payette, Don J
I'm using eclipse for my IDE and my project has a build.xml. Whenever I do a build, I right-click the build.xml and select Run Ant... I then select the All target. Works great. Recently, my cohorts have suggested I need to switch from the 1.3.1 Java to the 1.4.2 Java to be compatible with a new

RE: Re: taskdef-classpath fails to add jars to classpath

2005-04-04 Thread cknell
Thanks. I suppose I'll use a batch file to temporarily set CLASSPATH. It's ugly, but workable. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Antoine Levy-Lambert <[EMAIL PROTECTED]> Sent: Mon, 04 Apr 2005 19:24:45 +0200 To: Ant Users List Subject: Re:

Re: taskdef-classpath fails to add jars to classpath

2005-04-04 Thread Antoine Levy-Lambert
Hello, the fact that the class org/apache/avalon/framework/logger/Logger is not found might indicate that this class is loaded directly or undirectly by another class, which is using your startup classloader. this is documented under http://ant.apache.org/faq.html#delegating-classloader This kind

Memory usage of targets vs macrodefs?

2005-04-04 Thread David A. Bartmess
I've been hired by a company that uses a LOT of macros, and currently we're having problems with our builds because of memory issues. The JVM is set to 1024M for Xmx and 256M for Xms, and we still can't seem to get a build to go through successfully. Are there any comments on the memory usage for

taskdef-classpath fails to add jars to classpath

2005-04-04 Thread cknell
I have the following: - ant 1.6.2 - FOP 0.20.5 - WinXP Pro 2002 Service Pack 2 - FOP_HOME is defined as "C:\Program Files\Apache Software Foundation\fop-0.20.5" - CLASSPATH is defined as "C:/apache-ant-1.6.2\lib\ant.jar;C:/apache-ant-1.6.2\lib\optional.jar;C:/apache-a nt-1.6.2\lib\xercesImp

Re: How to find if rexx is installed using ANT

2005-04-04 Thread Ivan Ivanov
Hello Janu, You can use : --- Janu Mohandass <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > My project has a dependency on Rexx Scripts. I am > calling the Rexx Scripts > within Ant. > Before that I would want to check if users have rexx > installed in there > systems or not. > If not se

Re: Modifying a property file

2005-04-04 Thread Erik Hatcher
For the record, is as built-in as any other core tasks. I recommend you consider using it. Erik On Apr 4, 2005, at 8:36 AM, Rohnny Moland wrote: Hello, I am looking for an alternative way to modify a property file, without using the optional propertyfile task, and just use core functi

Modifying a property file

2005-04-04 Thread Rohnny Moland
Hello, I am looking for an alternative way to modify a property file, without using the optional propertyfile task, and just use core functionality... Tried with replace, but cant replace the whole line. Eg. fo.name = value not known ..and if I use "fo.name" as a token, I cant set the right

How to find if rexx is installed using ANT

2005-04-04 Thread Janu Mohandass
Hi all, My project has a dependency on Rexx Scripts. I am calling the Rexx Scripts within Ant. Before that I would want to check if users have rexx installed in there systems or not. If not set, I would want to exit out of the ant. How do I achieve this? Thanks in advance. Janu.

Re: Cannot find type issue (solved)

2005-04-04 Thread Fermin Da Costa
On Apr 3, 2005 6:09 PM, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: Thx 4 the reply, > add the attribute srcdir="src" to your javac invocation. This did not wotk because i was calling a main within a class that in turn starts a compilation. My fault because i did not supply the actual ant ta