RE: Repeating a task x times

2006-08-16 Thread Allwicher, Klaus
Write you own iterator for the loop produces: 1 2 ... 13 14 15 And here a simple implementation (of course you must add an antlib.xml to your jar) public class NumberGenerator implements Iterator { long start = 0; long incr = 1; lo

Copy question

2006-08-15 Thread Allwicher, Klaus
Hello, I have a stylistic question to the copy task and the mappers. I have the following situation: I have four directories, one reference/source directory, one reference/compiled directory, one current/source directory and a current/compiled directory: +- reference | +- source | +- compiled

RE: Ordered fileset

2006-05-12 Thread Allwicher, Klaus
ct: Re: Ordered fileset > > Klaus: > > So did that work or do you need another solution? > > Scot > > Allwicher, Klaus wrote: > > Hi Scot, > > > > thanks, I had read over the additional 'count' attribute, sorry :-( > > With this everything wo

RE: Ordered fileset

2006-05-12 Thread Allwicher, Klaus
From the documentation, it has a count attribute "the number > of files to find. If more than 1, than the files in the > output appear in the order indicated by the |age| attribute" > and age "the age of the files to retrieve, either |eldest| or > |youngest|. Defaults t

Ordered fileset

2006-05-11 Thread Allwicher, Klaus
Hi, I have to process different files ordered by their creation date. (In more detail, I have to import them and have to assure the the contents of newer archives are not overwritten by the contents of older files). If there a possiblity to define an order for filesets or are there any other ways

RE: replace < with < in property ??

2006-02-02 Thread Allwicher, Klaus
Your solution with regex is nearly correct, but you have to escape < and > ;-) The below snippet was successful tested :-) test: [echo] Input: 'foobar

RE: Regexp to property

2006-01-27 Thread Allwicher, Klaus
Why not use 'PropertyRegex' from ant-contrib ?!? > -Original Message- > From: Frank Henry [mailto:[EMAIL PROTECTED] > Sent: 27 January, 2006 11:06 > To: user@ant.apache.org > Subject: Regexp to property > > For a little tool I am working on I need to get information > from a file, via

RE: command execution

2006-01-18 Thread Allwicher, Klaus
As the documentation says, the command parameter is deprecated, the executable parameter should be used and in NO case both of them. I usually start batch jobs like below, I'm not sure if this is the best way, but it works ;-) In your case, you want to execute

RE: How to get each file's name in a fileset?

2005-12-12 Thread Allwicher, Klaus
Use task from ANT contrib: SHOULD work (not tested, maybe you have to change the delimiter to a comma for the construction of the ports-property) Klaus > -Original Message- > From: Ding Shukai [mailto:[EMAIL PROTECTED] > Sent: 12 December, 2005 10:14 > To: Ant Users List

RE: Recovering the return code from the called build.xml into the calling build.xml

2005-11-25 Thread Allwicher, Klaus
Maybe, I don't understand the problem right, but why don't you assign the return code to another property ?? E.g. > -Original Message- > From: Bhatia Saurabh (CHA) [

RE: Remove spaces in time string

2005-10-26 Thread Allwicher, Klaus
Formatpattern without spaces ?!? > -Original Message- > From: Mikael Petterson (KI/EAB) > [mailto:[EMAIL PROTECTED] > Sent: 26 October, 2005 14:38 > To: Ant Users List > Subject: Remove spaces in time string > > Hi, > > Is is possible to remove the spaces in the string ( see > gen

Logging questions

2005-10-06 Thread Allwicher, Klaus
Hi, I have some questions regarding the Log4J logging configuration of ANT, which I didn't get answered by any other resources: 1. I had a problem with the Log4J configuration. I got the error message: "Listener attempted to access System.out - infinite loop terminated" After some investigation

"Infinite Logging" when logging with log4j listener

2005-03-17 Thread Allwicher, Klaus
Hi, I have problems configuring ANT to use the log4j listener. Everything works fine until, I invoke a self written java class with the task. This java class also uses log4j for logging purposes. After the successful execution of the java class, the next task fails with the message: xxx: