Re: Getting around Set Property Values

2007-08-31 Thread Guru Balse
You can also consider passing in the destdir as an optional parameter (attribute) of the macro (with default value = [EMAIL PROTECTED]) David Weintraub wrote: Apparently, there are two methods: 1). Add the parameter name to my property name. Like this: 2). Use the Ant Contrib variables:

Re: while-like structure in Ant

2007-05-18 Thread Guru Balse
FYI: Scot Floess ([EMAIL PROTECTED]) has implemented some great loop solutions using and from ant-contrib. Steve Loughran wrote: Emir Mahmut BAHSI wrote: Hi all, I have been working on conditional structures and loop structures on existing workflow managers for a long time. For this purpose

Re: Probably been asked before - Trying to override old definition of

2007-02-02 Thread Guru Balse
Just FYI I moved the logger class to its own jar and when I use 'ant -logger my.own.Logger -lib my/own/logger.jar' it works fine. sunnymarc: double check your command line options, is it possible that a property in your BuildDrsPro_Rel401.properties defines a logger? Guru B

Re: Probably been asked before - Trying to override old definition of

2007-02-01 Thread Guru Balse
quot; : "datatype ") + name, >(def.similarDefinition(old, project)) >? Project.MSG_VERBOSE : Project.MSG_WARN); > >I tried running with "-q" option but that only works for top level >script, does not work for scripts that ar

Probably been asked before - Trying to override old definition of

2007-02-01 Thread Guru Balse
quot;-q" option but that only works for top level script, does not work for scripts that are fired off using: ant antfile="..." Is there any way to turn off these messages? Thanks. - Guru Balse - To uns

Re: Age of files/directories

2006-07-06 Thread Guru Balse
section of the ant manual, all the cool stuff is there. Antoine Guru Balse wrote: From a given directory, I wish to delete any directory that is of a certain age (example: more than 7 days old). I could not find any task/macro/addin that will support this requirement. Any s

Age of files/directories

2006-07-05 Thread Guru Balse
From a given directory, I wish to delete any directory that is of a certain age (example: more than 7 days old). I could not find any task/macro/addin that will support this requirement. Any suggestions? Thanks in advance. -

Re: For loop

2006-06-09 Thread Guru Balse
Awesome, Scot. It works well! Can't wait for the "better" solution that you are about to create :-) You must use 1.6.5 for this (for example, 1.6.2 did not work) classpath="/apache-ant-1.6.5ant1.6.2/lib/ant-contrib-1.0b1.jar"/>

Re: Implementing a loop in ANT

2006-06-08 Thread Guru Balse
Thanks to Dominique Devienne, Peter Reilly, Ninju Bohra, Scot P. Floess, Ben Stringer, and Steve Lughran for giving me such good ideas on achieving the loop functionality.I will get back to individuals if I need further help. The Ant Users List rocks! -

Re: Implementing a loop in ANT

2006-06-07 Thread Guru Balse
echo] val = 4 [echo] val = 9 BUILD SUCCESSFUL Total time: 2 seconds Hope that helps... Scot Guru Balse wrote: I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I

Implementing a loop in ANT

2006-06-07 Thread Guru Balse
list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thanks in advance for your suggestions. - Guru Balse - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: How do I get 's output back into my ant script?

2005-09-08 Thread Guru Balse
S I: I am sure there are many solutions. The first one that comes to my mind is to write the necessary string(s) out to a file (in the perl script) and then load the string(s) to a property in my ant script(s) using S I wrote: > > Hi > > I'm not quiet sure how to do this? I wrote a perl sc

Re: Ant Contrib and question

2005-06-03 Thread Guru Balse
The logic for this, Brent, is as follows: HTH Bill Rich wrote: > > Since properties are immutable I don't think you need to check to see if a > property is set or not. Make sure you set the default after any other > possible setting of the prop

Re: halt on javadoc warnings?

2004-11-23 Thread Guru Balse
One possible solution is to * use to load the javadoc output as a property (filtering for warnings, if possible), * use to look for egregious warnings, * if appropriate Of course, if you would like the build to fail while javadoc is running this won't help ... Roberto Juarez wrote: > > Hi

Re: Way for buildfile to verify that Ant version is 1.5.2 or grea ter ?

2004-10-22 Thread Guru Balse
I agree about the "not knowing which targets are called" part - that would need a klunky solution, but properties are inherited by default. It would be nice to be able to do a around a ... :-) Dominique Devienne wrote: > > > From: Guru Balse [mailto:[EMAIL PROTECTE

Re: Way for buildfile to verify that Ant version is 1.5.2 or grea ter ?

2004-10-22 Thread Guru Balse
ProjectHelper... > Ant should have had a version attribute long ago. --DD > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Guru Balse Oracle - Server Technologies - iAS Integration QA Work: 650.506.1611 (1op668 - HQ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with missing jars/zips in classpath

2004-03-22 Thread Guru Balse
s to get to the bottom of this, the priority is listed as 1 i.e. MSG_WARN. What am I missing? How do I turn these annoying messages off? For now my workaround is to copy a dummy jar (one that contains an actual simple class file) to the non-existent files, but there's got to

Re: Running for multiple files

2004-03-17 Thread Guru Balse
ing will grow over time, so I > need some wildcard approach. > > TIA, > Bernd > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Guru Balse O

Re: Basic setup question

2004-03-17 Thread Guru Balse
I suspect ANT works in mysterious ways on NT/XP. Look at my screen dump below: - C:\my_data\ant_learn>set | grep ANT C:\my_data\ant_learn>which ant /cygdrive/c/my_data/apache-ant-1.6.0/bin/ant C:\my_data\ant_learn>ant -f test.xml Buildfile: