Re: How to execute a subtask conditionally if used several times

2005-06-16 Thread Zarar Siddiqi
As for executing it conditionally, you can use Ant-contribs if/else. http://ant-contrib.sourceforge.net/tasks/tasks/if.html Zarar - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, June 16, 2005 1:07 AM Subject: AW: How to execute a subtask conditionally if used sever

Re: How to execute a subtask conditionally if used several times

2005-06-16 Thread Zarar Siddiqi
Ant-contrib's tag can do it. http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html Zarar - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, June 16, 2005 1:07 AM Subject: AW: How to execute a subtask conditionally if used several times Maybe would bet

Re: Detecting JDK Version using ANT

2005-06-16 Thread Zarar Siddiqi
On Wed, 15 Jun 2005, Zarar Siddiqi <[EMAIL PROTECTED]> wrote: I'm assuming ${ant.java.version} is the version Ant is using in case there are multiple JDK's installed No, it is the "flavor" of JDK Ant has detected at runtime, it doesn't trust the system properti

Re: Detecting JDK Version using ANT

2005-06-15 Thread Zarar Siddiqi
$${java.version} is ${java.version} $${java.runtime.version} is ${java.runtime.version} Regards Ivan --- Zarar Siddiqi <[EMAIL PROTECTED]> wrote: Hi, Is there a clean way to detect what version of Java is being used when running a build file? Some possible solutions include: 1

Detecting JDK Version using ANT

2005-06-15 Thread Zarar Siddiqi
Hi, Is there a clean way to detect what version of Java is being used when running a build file? Some possible solutions include: 1) parsing the JAVA_HOME variable to detect the version number 2) Checking the existence of a file which is specific to a version Both methods are somewhat brittle.