ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Bagley" <rbag...@hbs.edu>
Subject Ant task and basedir
Date Thu, 29 Mar 2001 14:31:26 GMT
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


Mime
View raw message