Hi,

I try to build apache ant on a linux machine, but I got the following
error. Can somebody let me know how too fix the problem?

Regards,
Peng

$ echo $ANT_HOME
/home/pengy/utility/linux/opt/apache-ant-1.7.1
$ sh build.sh install
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
... Copying Required Files
... Building Ant Distribution
Buildfile: build.xml

bootstrap:

prepare:

check_for_optional_packages:

build:
Created dir: /home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib
Compiling 231 source files to
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Copying 4 files to
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/classes
Copying 2 files to
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/classes
Copying 2 files to
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/classes/org/apache/tools/ant/taskdefs/optional/junit/xsl

jars:
Copying 2 files to /home/pengy/download/linux/openoffice/apache-ant-1.7.1/build
Copying 1 file to /home/pengy/download/linux/openoffice/apache-ant-1.7.1/build
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-launcher.jar
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant.jar
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-bootstrap.jar
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-nodeps.jar
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-trax.jar
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-resolver.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-resolver.jar
because no files were included.
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-junit.jar
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-regexp.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-regexp.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-oro.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-oro.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-bcel.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-bcel.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-log4j.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-log4j.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-commons-logging.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-commons-logging.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-bsf.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-apache-bsf.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-stylebook.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-stylebook.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-javamail.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-javamail.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-netrexx.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-netrexx.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-commons-net.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-commons-net.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-starteam.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-starteam.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-antlr.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-antlr.jar
because no files were included.
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-jmf.jar
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-jai.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-jai.jar
because no files were included.
Building jar: 
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-swing.jar
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-jsch.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-jsch.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-jdepend.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-jdepend.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-weblogic.jar
because no files were included.
Warning: skipping jar archive
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build/lib/ant-weblogic.jar
because no files were included.

compile-tests:

test-jar:

BUILD FAILED
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build.xml:1106:
The following error occurred while executing this line:
/home/pengy/download/linux/openoffice/apache-ant-1.7.1/build.xml:912:
We cannot build the test jar unless JUnit is present,
      as JUnit is needed to compile the test classes.

Total time: 7 minutes 59 seconds
... Failed Building Ant Distribution !
Bootstrap FAILED

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to