Hi,
I am getting the below error in building "fileupload" using ant
*# ll /commons-fileupload-1.0*
LICENSE.txt build.xml project.properties src
apache-ant-1.8.0RC1 download project.xml target
*# /commons-fileupload-1.0/apache-ant-1.8.0RC1/bin/ant -buildfile build.xml*
Buildfile: /commons-fileupload-1.0/build.xml
init:
get-deps:
[get] Getting:
http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar
[get] To: /commons-fileupload-1.0/target/lib/servletapi-2.3.jar
[get] Error getting
http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar to
/commons-fileupload-1.0/target/lib/servletapi-2.3.jar
[get] Getting: http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar
[get] To: /commons-fileupload-1.0/target/lib/junit-3.8.1.jar
[get] Error getting
http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar to
/commons-fileupload-1.0/target/lib/junit-3.8.1.jar
[get] Getting: http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar
[get] To: /commons-fileupload-1.0/target/lib/junit-3.8.1.jar
[get] Error getting
http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar to
/commons-fileupload-1.0/target/lib/junit-3.8.1.jar
[get] Getting: http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar
[get] To: /commons-fileupload-1.0/target/lib/ant-1.5.jar
[get] Error getting
http://www.ibiblio.org/maven/ant/jars/ant-1.5.jarto
/commons-fileupload-1.0/target/lib/ant-1.5.jar
[get] Getting:
http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar
[get] To: /commons-fileupload-1.0/target/lib/ant-optional-1.5.jar
[get] Error getting
http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar to
/commons-fileupload-1.0/target/lib/ant-optional-1.5.jar
compile:
[javac] /commons-fileupload-1.0/build.xml:36: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
compile-tests:
[javac] /commons-fileupload-1.0/build.xml:104: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
internal-test:
[junit] WARNING: multiple versions of ant detected in path for junit
[junit]
jar:file:/commons-fileupload-1.0/apache-ant-1.8.0RC1/lib/ant.jar!/org/apache/tools/ant/Project.class
[junit] and
jar:file:/commons-fileupload-1.0/target/lib/ant-1.5.jar!/org/apache/tools/ant/Project.class
[junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 0.12 sec
[junit] Testsuite: org.apache.commons.fileupload.TestAll
[junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 0.12 sec
[junit]
[junit] Testcase: testDefaultConstructor took 0.007 sec
[junit] Testcase: testThreeParamConstructor took 0 sec
[junit] Testcase: testTwoParamConstructor took 0 sec
[junit] Testcase: testToString took 0.001 sec
[junit] Testcase: testWithInvalidRequest took 0.022 sec
[junit] Testcase: testWithNullContentType took 0.001 sec
[junit] Testcase: testParseRequest took 0 sec
[junit] Testcase: testBelowThreshold took 0.01 sec
[junit] Testcase: testAtThreshold took 0 sec
[junit] Testcase: testAboveThreshold took 0.001 sec
[junit] Testcase: testThresholdReached took 0.001 sec
[junit] Testsuite: org.apache.commons.fileupload.TestAll
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit]
[junit] Testcase: null took 0 sec
[junit] Caused an ERROR
[junit] Forked Java VM exited abnormally. Please note the time in the
report does not reflect the time until the VM exit.
[junit]
[junit] Running org.apache.commons.fileupload.TestAll
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
BUILD FAILED
/commons-fileupload-1.0/build.xml:76: Test
org.apache.commons.fileupload.TestAll failed (crashed)
Total time: 6 minutes 24 seconds
can any one tell me how to resolve this issue.
Regards,
Matty