Description
There were two problems found in src/test/bin/test-patch.sh while I am doing the backporting of TFile patch (HADOOP-3315):
- java5.home and forrest.home is not defined for the ant command in pre-build stage, which leads to the following error message (in file trunkJavacWarnings.txt):
java5.check: BUILD FAILED /home/htang/workspace/test-patch/branch-0.20/build.xml:891: 'java5.home' is not defined. Forrest requires Java 5. Please pass -Djava5.home=<base of Java 5 distribution> to Ant on the command-line.
- When referring 10-th argument from the command line, it should use "${10}" instead of "$10" (which is $1 with a zero appended).