<property environment="env" /> <target name="launchOpenAgent"> <echo message="OpenAgent launch as spawned process" /> <exec spawn="true" executable="${env.OPEN_AGENT_HOME}/agent/openAgent.exe" /> <!-- give the agent time to start --> <sleep seconds="30" /> </target>