For task not supported

Help
fwhc022883
2007-03-10
2013-04-24
  • fwhc022883
    fwhc022883
    2007-03-10

    I tried using the "for" task but it says it is not supported.  I checked the antcontrib.properties file and it does not have an entry for it.

    Is this a bug?

    Felix

     
    • Steve Tekell
      Steve Tekell
      2007-04-07

      Not a bug with the library but one with the ant-contrib home page being outdated.  Or at least that's where I fell into that trap, before looking at the README.

      you need to use the xml,
      <taskdef resource="net/sf/antcontrib/antlib.xml" />

      instead of the antcontrib.properties.

       
    • Jay Colson
      Jay Colson
      2007-04-24

      home page definitely needs an update on this :-)

       
    • I don't know about that guys, mine is working fine using the antcontrib.properties:

      <project name="MyProject" default="compile" basedir="."   xmlns:cpptasks="antlib:org.sf.net.antcontrib.cpptasks">
          <description>
              Builds AbstractFormatIO
          </description>

          <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
          <taskdef resource="cpptasks.tasks"/>
          <typedef resource="cpptasks.types"/>
      ...