Re: Recursive file matching

2005-07-21 Thread Daniel Blaukopf
You can do it without ant-contrib: to="*Test.class"/> Juergen Hermann wrote: On Fri, 22 Jul 2005 03:40:36 +0200, Danilo B

Re: Recursive file matching

2005-07-21 Thread Juergen Hermann
On Fri, 22 Jul 2005 03:40:36 +0200, Danilo Buerger wrote: >is it possible to make sure that for each class a corresponding unit >test class exist? For example: >For these two classes: >/xyz/main.class >/xyz/whatever.class define this as a fileset, use a to map to the test files, iterate over

Recursive file matching

2005-07-21 Thread Danilo Buerger
Hey everybody, is it possible to make sure that for each class a corresponding unit test class exist? For example: For these two classes: /xyz/main.class /xyz/whatever.class these two classes must exist: /abc/mainTest.class /abc/whateverTest.class else Build Fail. Thanks in advance.

Re: properties file read programatically

2005-07-21 Thread javier muguruza
great juergen, thanks. I mean I knew it could be done some way or other, I meant if it was possible very easily. I find it strange that I could not find any reference to it, in the wiki or something, I guess people would find it very handy in their configuration files... javi On 7/21/05, Juerg

Re: properties file read programatically

2005-07-21 Thread Juergen Hermann
On Thu, 21 Jul 2005 22:48:38 +0200, javier muguruza wrote: >I haven't found anything in the list about that...is it possible to >use ant programatically to read a property file and at the same time >performing the property substitution like ant does? I would like to >reuse my build.properties for

Re: NullPointerException when adding listener

2005-07-21 Thread Juergen Hermann
On Thu, 21 Jul 2005 11:42:15 -0700 (PDT), Matt Benson wrote: >Looks like your XmlLogger object needs -some- >configuration between instantiation and addition as a >listener. Well, in some twisted way, yes. The XmlLogger does two things: recording seen tasks in "tasks", and recording timing info.

properties file read programatically

2005-07-21 Thread javier muguruza
Hi, I haven't found anything in the list about that...is it possible to use ant programatically to read a property file and at the same time performing the property substitution like ant does? I would like to reuse my build.properties for my own code. thank you in advance, javi -

java.lang.InstantiationException:org.apache.tools.ant.Main

2005-07-21 Thread Arti Singh
Hi, Does anyone have any suggestions here?Im stumped my Ant stopped working.I cant even run a build script C:\apache-ant-1.6.5\bin>ant java.lang.InstantiationException: org.apache.tools.ant.Main at java.lang.Class.newInstance0(Class.java:293) at java.lang.Class.newInstance(Class

RE: which build tool yields fastest incremental builds? GNU make , Jam , Ant or Scons ?

2005-07-21 Thread Dominique Devienne
> From: hiren patel [mailto:[EMAIL PROTECTED] > I am working on a very large C++ project (around 12 miliion LOC , > generating 450 DLLs and hundereds of source files ) and we building it > with PVCS merant make. > Since current full build time is almost 7 hr , we cannot compromise on the > ti

Ant Input Problem

2005-07-21 Thread Jacob Albertson
Hi, I have written a CustomTask that waits for some input from a web server in a loop but if it reaches a timeout it stops. I want the user to have the option to press a and enter at anytime to abort the check and continue execution. I have implemented this in java using the System.in.availa

Re: NullPointerException when adding listener

2005-07-21 Thread Matt Benson
Looks like your XmlLogger object needs -some- configuration between instantiation and addition as a listener. HTH, Matt --- Juergen Hermann <[EMAIL PROTECTED]> wrote: > Hi, the following build script which adds a listener > at runtime fails with a > NullPointerExcepton. Is this a bug, just not

NullPointerException when adding listener

2005-07-21 Thread Juergen Hermann
Hi, the following build script which adds a listener at runtime fails with a NullPointerExcepton. Is this a bug, just not possible or an error in my script? (Tested with ant 1.6.2) Test Adding Logger via Scripting Adding refer

Re: sort or min/max file

2005-07-21 Thread Matt Benson
In Ant 1.7 you will be able to sort resource collections (e.g. fileset) by various criteria including timestamp. At present nothing comes to mind other than a custom task, scripting, or delegating to an OS command such as dir or ls. -Matt --- "Schulpen, D.P.H." <[EMAIL PROTECTED]> wrote: > I'm

Re: Build ANT 1.7alpha from CVS

2005-07-21 Thread Peter Reilly
Stefan Bodewig wrote: On Thu, 21 Jul 2005, <[EMAIL PROTECTED]> wrote: The problem is that are many JAR's like ant-commons-net.jar with a size of 1KB. Thats not really ok i think. Depends on what you consider OK ;-) Ant builds all optional tasks for which it can find the dependencies

Re: Build ANT 1.7alpha from CVS

2005-07-21 Thread Stefan Bodewig
On Thu, 21 Jul 2005, <[EMAIL PROTECTED]> wrote: > The problem is that are many JAR's like ant-commons-net.jar with a > size of 1KB. Thats not really ok i think. Depends on what you consider OK ;-) Ant builds all optional tasks for which it can find the dependencies, Ant's CVS HEAD does not conta