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
error:
Buildfile: M:\bedework\bedework\projects\contrib\build.xml
init:
build-source:
[taskdef] Could not load definitions from resource
net/sf/antcontrib/antcontrib.properties. It could not be found.
init:
build:
BUILD FAILED
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
place.
The line 117 is:
<ant antfile="${buildjar}" inheritRefs="true" target="build" >
<property name="build.jar.file"
location="${generated.jar.file}" />
</ant>
And the section including line 84 is:
<uptodate property="build.jar.uptodate"
targetfile="${build.jar.file}" >
<srcfiles refid="base.java.sources" />
<srcfiles refid="base.resource.files"/>
<!-- change this to a fileset
<srcfiles refid="compile.classpath" />
-->
</uptodate>
<if>
<isset property="build.jar.uptodate"/>
<then>
<echo message="**** ${build.jar.file} is up to date" />
</then>
</if>
<if>
<not>
<isset property="build.jar.uptodate"/>
</not>
<then>
<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
../ant.sh but I'm running Windows 2000 on this server, so how would I
invoke the project build?
Thanks in advance for any help.
Iain
Iain Emsley
Support Analyst
JISCmail: www.jiscmail.ac.uk
Mailtalk: www.mailtalk.ac.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]