Hi All, I am trying to write a target that calls an different executable depending upon the operating system it is running on. For example, this is my intention. <target name="runExecutable"> <!-on windows 2000 or XP --> <exec executable="executable.bat" /> <!-on UNIX Solaris or AIX --> <exec executable="executable.sh" /> </target> I can't include element "os" in the "exec" . if I have to use 'os' attribute in the 'exec', I have provide correct value to it and redundant code is the result. This is what I am doing right now. <target name="runExecutable"> <!-on windows 2000 --> <exec executable="executable.bat" os="Windows XP" /> <!-on windows XP --> <exec executable="executable.bat" os="Windows 2000"/> <!-on UNIX Solaris --> <exec executable="executable.sh" os="SunOS"/> <!-on UNIX AIX --> <exec executable="executable.sh" os="Aix"/> </target> Is there any way to generalize it? Thanks, Satish
----------------------------------------- The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.