Stein Eldar Johnsen <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]/private/tmp/DERBY/derby-85$ which ant /usr/local/java/ant/bin/ant [EMAIL PROTECTED]/private/tmp/DERBY/derby-85$ echo $ANT_HOME /usr/local/java/ant [EMAIL PROTECTED]/private/tmp/DERBY/derby-85$ export ANT_HOME=/usr/local/share/java/apache-ant-1.6.2 [EMAIL PROTECTED]/private/tmp/DERBY/derby-85$ which ant /usr/local/java/ant/bin/ant [EMAIL PROTECTED]/private/tmp/DERBY/derby-85$ export PATH=$ANT_HOME/bin:$PATH [EMAIL PROTECTED]/private/tmp/DERBY/derby-85$ which ant /usr/local/share/java/apache-ant-1.6.2/bin/ant -- dt
