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:
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
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
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
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
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
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.
-
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"/>
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!
-
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
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
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
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
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
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
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]
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
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
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:
19 matches
Mail list logo