So using the weirdly-built ant-contrib.jar i described in my last post,
i'm getting task redefinition warnings like this:


Buildfile: build.xml

extract:
Trying to override old definition of task propertycopy
Trying to override old definition of task foreach
Trying to override old definition of task osfamily
Trying to override old definition of task switch
Trying to override old definition of task trycatch
Trying to override old definition of task throw
Trying to override old definition of task if


Here's my build.xml:


<?xml version="1.0"?>

<project name="master_extractor" default="extract" basedir=".">
  
  <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
      <pathelement location="/usr/share/java/ant-contrib-0.1.jar"/>
    </classpath>
  </taskdef>
  
  <target name="extract">
    <foreach list="foo, bar, baz" param="name" target="echo"/>
    <osfamily property="foo"/>
    <echo message="${foo}"/>
  </target>

  <target name="echo">
    <echo message="${name}"/>
  </target>
  
</project>


It appears to be working correctly, but for each element in my foreach
list, it prints those "Trying to override..." messages.

Is this normal behavior for the foreach task as written? Is there a way
to suppress those messages (without, say, redirecting all stderr to
/dev/null)?

Please CC me on replies, as i'm not on the list.

tyler

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to