AW: Documentation problem for replaceregexp

2007-12-11 Thread Jan.Materne
Thanks for the hint. The right part is I changed that on SVN-HEAD. Jan > -Ursprüngliche Nachricht- > Von: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 11. Dezember 2007 16:00 > An: Ant Users List > Betreff: Documentation problem for replaceregexp > > Hi all,

Re: newbie question: variable scope

2007-12-11 Thread Chuck Holzwarth
I have had the same problem. The following target shows how I got around the problem. Since I have to do differential builds I can't predict the number of zip files that are produced, so I check for the existence of the file before calling this target. When I need the list of files, to create th

Re: newbie question: variable scope

2007-12-11 Thread Hudson Ansley
that did the trick, thanks again! Now, what I thought might be a better solution than using "var" was to create a "filelist" and add files to this construct and then use it by ref in the upload target. I thought creating an empty "filelist" then using it's refid to add files might work, but it seem

Re: newbie question: variable scope

2007-12-11 Thread Krzysztof Kucybala
Don't know what Your ant file looks like, but I'd try to employ the antcontrib's antcallback task - it calls another target and lets it return a property (more than one actually) to the target, who made the call. Does that help? Best regards, Chris Hudson Ansley wrote: I'm trying to use the

Re: newbie question: variable scope

2007-12-11 Thread Hudson Ansley
yes, I am using thanks so much for your explanation and suggestion - sounds like a winner! Regards, Hudson On Dec 11, 2007 10:56 AM, Peter Reilly <[EMAIL PROTECTED]> wrote: > You are most likely using or to call the other targers > this causes a new ant project to be created. porjects created in

Re: newbie question: variable scope

2007-12-11 Thread David Weintraub
When you say "upload", what do you mean? Are you using "ftp" or "scp" to move the files from your system to another system? If so, you probably would be better off using the AntContrib task or the task to determine whether or not to move these files to another system than trying to save their na

Re: newbie question: variable scope

2007-12-11 Thread Peter Reilly
You are most likely using or to call the other targers this causes a new ant project to be created. porjects created in or modified in the child projects have no effect on the properties in the main project. You can use from antcontrib to run the targets in the same project. Peter On Dec 11,

newbie question: variable scope

2007-12-11 Thread Hudson Ansley
I'm trying to use the discouraged "var" to keep track of updated files for a final upload step. It appears that when I change a variable in one target, that change is not reflected from another target. I imagine I am going about this the wrong way, so besides explaining why this might be happening,

Documentation problem for replaceregexp

2007-12-11 Thread Ognjen Blagojevic
Hi all, There is a documentation error in ant manual for ant task replaceregexp. In example: includes should be an attribute, something like this, I think: Or maybe nasted tag, something like this But the example anyway, wrong. Can someone change this? R

Re: Target description format using -projecthelp

2007-12-11 Thread David Weintraub
You're putting too much in your description attributes. The description attribute does two things: It marks which targets are "external" -- that is targets the user should run, and it helps (merely helps) the user to remember which target does what. The "ant -projecthelp" will only display targets

Re: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-11 Thread Stepan Mishura
On 12/10/07, Ravi Roy <[EMAIL PROTECTED]> wrote: > Hello all, > > I am running my product build with cruisecontrol using ant 1.7.0. Our testing infra hit the same problem with ANT 1.6.5. As workaround the infra forks ANT build in a separate process. Thanks, Stepan. I have set > ANT_OPTS=-Xms=153

Re: Setting final strings at compile time

2007-12-11 Thread Steve Loughran
Frederich, Eric P21322 wrote: Thanks for the reply and a possible solution but this seems more like a hack. Yeah, right now I have something like Public static final String programName = "Java Program XYZ"; I'd like to be able to make one where that string is "Java Program XYZ - Development Versi

Setting up file dependencies

2007-12-11 Thread Francisco Tolmasky
I would ant to process a certain file if a dependent file has changed. Currently, only if the file in question itself has changed does it process it, which is expected behavior. But what I'm looking for is something similat to makes dependencies: somefile : other files Is this possible?