Whenever i use

    <property environment="env"/>
    <echo message="architecture = ${env.PROCESSOR_ARCHITECTURE}" />

to get the value from environment variables. i always get x86.
even if i use AMD64 processor, it reurns x86.
"set" command on command prompt shows AMD64 for PROCESSOR_ARCHITECTURE.

How can i get the architecture value through ant
Any help is appreciated.