db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dyre.Tjeldv...@Sun.COM
Subject Re: Derby build failure.
Date Wed, 30 Nov 2005 11:31:40 GMT
Stein Eldar Johnsen <morimekta@gmail.com> writes:

> Hi
>
> Im trying to compile Derby on my computer (Derby from SVN and 10.1.2.1
> source generates same messge), but when I run ant it generates an error.
> The error is the same whether sane is true or false. I am running
> ant-1.6.2, java-1.4.2_09 / java-1.3.1_16. The message from ant:
>
> Buildfile: build.xml
>
> init:
>
> ensuresanitystate:
>
> evaluate.sane:
>
> ensuresanitystate.sane:
>
> sane:
>
> BUILD FAILED
> /home/morimekta/workspace/DerbySVN/build.xml:37: The following error
> occurred while executing this line:
> /home/morimekta/workspace/DerbySVN/build.xml:51: The following error
> occurred while executing this line:
> /home/morimekta/workspace/DerbySVN/build.xml:62: The following error
> occurred while executing this line:
> /home/morimekta/workspace/DerbySVN/build.xml:66: The following error
> occurred while executing this line:
> /home/morimekta/workspace/DerbySVN/build.xml:523: Could not create task
> or type of type: propertyfile.
>
> Ant could not find the task or a class this task relies upon.

Sounds very much like you're not using the ant you think you're
using...

It is not enough to just set ANT_HOME, you also need to add
$ANT_HOME/bin to your path (before any other ant, of course) 

Example:
dt136804@khepri29/private/tmp/DERBY/derby-85$ which ant
/usr/local/java/ant/bin/ant
dt136804@khepri29/private/tmp/DERBY/derby-85$ echo $ANT_HOME
/usr/local/java/ant
dt136804@khepri29/private/tmp/DERBY/derby-85$ export ANT_HOME=/usr/local/share/java/apache-ant-1.6.2
dt136804@khepri29/private/tmp/DERBY/derby-85$ which ant
/usr/local/java/ant/bin/ant
dt136804@khepri29/private/tmp/DERBY/derby-85$ export PATH=$ANT_HOME/bin:$PATH
dt136804@khepri29/private/tmp/DERBY/derby-85$ which ant
/usr/local/share/java/apache-ant-1.6.2/bin/ant

-- 
dt



Mime
View raw message