ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: antlib descriptor
Date Mon, 25 Feb 2002 17:06:15 GMT
On Sat, 23 Feb 2002, Jose Alberto Fernandez <j_a_fernandez@yahoo.com>
wrote:

> First of all it works in ANT1.4.1.

Not for me:

[bodewig@bodewig tmp]$ cat testpath.xml 
<project default="test">
  <target name="test">
    <sequential>
      <path id="test">
        <pathelement location="/tmp" />
      </path>
      <property name="test-1" refid="test" />
      <echo message="${test-1}" />
    </sequential>
    <property name="test-2" refid="test" />
    <echo message="${test-2}" />
  </target>
</project>

[bodewig@bodewig tmp]$ /tmp/jakarta-ant-1.4.1/bin/ant -version
Ant version 1.4.1 compiled on October 11 2001

[bodewig@bodewig tmp]$ echo $ANT_HOME
/tmp/jakarta-ant-1.4.1

[bodewig@bodewig tmp]$ /tmp/jakarta-ant-1.4.1/bin/ant -f testpath.xml 
Buildfile: testpath.xml

test:

BUILD FAILED

/tmp/testpath.xml:4: Could not create task of type: path. Common solutions are to use taskdef
to declare your task, or, if this is an optional task, to put the optional.jar in the lib
directory of your ant installation (ANT_HOME).

Total time: 0 seconds

The result with 1.5alpha is 

[bodewig@bodewig jakarta-ant]$ ant -f /tmp/testpath.xml 
Buildfile: /tmp/testpath.xml

test:
Overriding previous definition of reference to test
     [echo] ${test-1}
     [echo] /tmp

BUILD SUCCESSFUL
Total time: 1 second

which shows that it still doesn't work properly.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message