Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Ant problem

Subject: perfsonar development work

List archive

Re: [pS-dev] Ant problem


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Maciej Glowiak <>
  • Cc: Loukik Kudarimoti <>, , Perfsonar Development <>
  • Subject: Re: [pS-dev] Ant problem
  • Date: Mon, 13 Aug 2007 11:41:38 +0200

Maciej Glowiak wrote:
Loukik Kudarimoti wrote:


Chris Welti wrote:
Hi Maciej,

Why don't you just add a check of the Ant version to the scripts and only
print the default values if the version is below 1.7.0?
Very nice idea. If its possible to do this.
I think I know how to this in a quite good way. I'll come back to this when I have finished my current tasks.

Roman


Hi,

I haven't found any ant task for checking ant version.

We could use <exec> task and:

1. run "exec ant -version" in order to display for instance:
"Apache Ant version 1.7.0 compiled on December 13 2006"
2. parse output somehow. There are no parsing tasks in ant,
so we should use another <exec> for sed or awk
3. check version

4. for each input we'd need to print out (or not) default option.

The solution would not be scalable (points 1-3 should be inside a shell/perl script) and a lot of conditions should be checked (one for all input) - the code of scripts may become unclear.

Or there is an ant task for checking version I missed?

Maciej









Archive powered by MHonArc 2.6.16.

Top of Page