Here's a simple little file (text.xml)

<project default="echo">
  <target name="echo">
    <echo message="${ant.project.name}"/>
    <exec executable="ls">
      <arg value="/export/projects/rbagley/projects/mailbox" />
    </exec>
  </target>
</project>

  If I execute it from this ant script, ls returns -1

<project name="test-start" default="echo" basedir="..">
  <target name="echo">
   <ant antfile="scripts/test.xml" />
  </target>
</project>

  If I execute it from this ant script, ls works

<project name="test-start" default="echo" basedir=".">
  <target name="echo">
   <ant antfile="test.xml" />
  </target>
</project>

  The only thing different is the basedir - it only works if it is the
current directory.  This worked OK under version 1.2.  Anyone have any
ideas?

Thanks
-Rich

Reply via email to