title: ANT build runs fine with WS_ANT but fails in RAD
body: <p>Just trying to run ANT script with in IBM RAD\RSA 8 to deploy to websphere .
  It works fine when run from command prompt using WS_ANT.bat but inside RAD fails with following error</p>
  
  <pre><code>Unable to determine WAS Home directory. Please use the wasHome task attribute or set the was.root System property.
  </code></pre>
  
  <p>Following is basic ANT script copied from SO and Modified again runs fine from WS_ANT but not from RAD</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;projectname="project"default="wasListApps"basedir="."&gt;
          &lt;description&gt;
          Script for listing installed apps.
          Example run from:
          /opt/IBM/SDP70/runtimes/base_v61/profiles/AppSrv01/bin
      &lt;/description&gt;
  
          &lt;propertyname="was_home"location="C:\Program Files\ibm\SDP80\runtimes\base_v7"/&gt;       
  
          &lt;pathid="was.runtime"&gt;
                  &lt;filesetdir="${was_home}/lib"&gt;
                          &lt;includename="**/*.jar"/&gt;
                  &lt;/fileset&gt;
                  &lt;filesetdir="${was_home}/plugins"&gt;
                          &lt;includename="**/*.jar"/&gt;
                  &lt;/fileset&gt;
          &lt;/path&gt;
          &lt;propertyname="was_cp"value="${toString:was.runtime}"&gt;
          &lt;/property&gt;
          &lt;propertyname="was_server"value="server1"/&gt;
          &lt;propertyenvironment="env"&gt;
          &lt;/property&gt;
  
          &lt;targetname="wsStopServer"&gt;
                  &lt;taskdefname="wsStopServer"classname="com.ibm.websphere.ant.tasks.StopServer"classpath="${was_cp}"&gt;
                  &lt;/taskdef&gt;
                  &lt;wsStopServerserver="${was_server}"failonerror="false"/&gt;
          &lt;/target&gt;
  
          &lt;targetname="wsStartServer" depends="wsStopServer"&gt;
                          &lt;taskdefname="wsStartServer"classname="com.ibm.websphere.ant.tasks.StartServer"classpath="${was_cp}"&gt;
                          &lt;/taskdef&gt;
                          &lt;wsStartServerserver="${was_server}"failonerror="true"/&gt;
                  &lt;/target&gt;
  
  
          &lt;targetname="wasListApps"depends="wsStartServer"&gt;
                  &lt;taskdefname="wsListApp"classname="com.ibm.websphere.ant.tasks.ListApplications"classpath="${was_cp}"&gt;
                  &lt;/taskdef&gt;
                  &lt;wsListAppwasHome="${was_home}"/&gt;
          &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>