ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emsley, I (Iain)" <>
Subject Failing to create a task or type
Date Wed, 11 Jun 2008 10:13:33 GMT
I've come into difficulties on an build.xml file which I'd appreciate
some pointers in solving. I've been running a build on a subdirectory of
a programme to add in contributor code but keep getting the following
Buildfile: M:\bedework\bedework\projects\contrib\build.xml
[taskdef] Could not load definitions from resource
net/sf/antcontrib/ It could not be found.
M:\bedework\bedework\projects\contrib\build.xml:117: The following error
occurred while executing this line:
M:\bedework\bedework\projects\contrib\build\buildjar.xml:84: Problem:
failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
The line 117 is: 
<ant antfile="${buildjar}" inheritRefs="true" target="build" >
      <property name="build.jar.file"
                location="${generated.jar.file}" />
And the section including line 84 is:
<uptodate property="build.jar.uptodate"
              targetfile="${build.jar.file}" >
      <srcfiles refid="" />
      <srcfiles refid="base.resource.files"/>
      <!-- change this to a fileset
      <srcfiles refid="compile.classpath" />

      <isset property="build.jar.uptodate"/>
        <echo message="**** ${build.jar.file} is up to date" />

        <isset property="build.jar.uptodate"/>
        <echo message="**** ${build.jar.file} needs rebuilding" />

        <!-- Delete jar file -->
        <delete file="${build.jar.file}"/>

        <dirname property="build.jar.dir" file="${build.jar.file}"/>

        <mkdir dir="${build.jar.dir}" />
It appears to be failing at the first <if> but I'm not sure how to
correct this at all.

I don't know if this is helping the error but I've been trying to get
use a copy of ant at ANT_HOME but there is also a project build of Ant
(1.7.0) in the M:\bedework directory. The recommended command was
../ but I'm running Windows 2000 on this server, so how would I
invoke the project build?

Thanks in advance for any help. 


Iain Emsley
Support Analyst

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message