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
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
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
$${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
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.