ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Bushby <bruce.bus...@rmsaudio.com>
Subject Problems building Ant 1.7.0 and JDK 1.6.0
Date Fri, 12 Jan 2007 00:44:41 GMT
Hi

Hoping somebody could assist with some problems I'm having building Ant 1.7.0

My setup:
Fedora Core 6 (32bit vmware)
JDK (/usr/local/jdk1.6.0)
ANT (apache-ant-1.7.0)

I extract the tar file in /usr/local/src
cd into apache-ant-1.7.0

Then I check my env varibales, they're set as follows:
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/local/jdk1.6.0
unset CLASSPATH

Then I run the build.sh script as follows:
sh build.sh -Ddist.dir=/usr/local/ant dist

The build fails saying "We cannot build the test jar unless JUnit is present"
I've gone through the docs, specifically the "Installing Ant/Building Ant" but can't
find an explanation for where I'm going wrong?

Any ideas?




Full transcript of tar extract, variable check and build:

[root@java32 src]#
[root@java32 src]#
[root@java32 src]# ll
total 45240
-rw-r--r-- 1 root root 19968000 Jan 11 23:31 apache-ant-1.7.0-src.tar
drwxr-xr-x 7 root root     4096 Jan 11 23:26 apache-tomcat-5.5.20-src
-rw-r--r-- 1 root root 26296320 Jan 11 23:25 apache-tomcat-5.5.20-src.tar
[root@java32 src]#
[root@java32 src]# tar -xf apache-ant-1.7.0-src.tar
[root@java32 src]# cd apache-ant-1.7.0
[root@java32 apache-ant-1.7.0]#
[root@java32 apache-ant-1.7.0]# pwd
/usr/local/src/apache-ant-1.7.0
[root@java32 apache-ant-1.7.0]#
[root@java32 apache-ant-1.7.0]# echo $ANT_HOME
/usr/local/ant
[root@java32 apache-ant-1.7.0]# echo $JAVA_HOME
/usr/local/jdk1.6.0
[root@java32 apache-ant-1.7.0]# echo $CLASSPATH

[root@java32 apache-ant-1.7.0]# sh build.sh -Ddist.dir=/usr/local/ant dist
... 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: /usr/local/src/apache-ant-1.7.0/build/lib
Compiling 225 source files to /usr/local/src/apache-ant-1.7.0/build/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Copying 4 files to /usr/local/src/apache-ant-1.7.0/build/classes
Copying 2 files to /usr/local/src/apache-ant-1.7.0/build/classes
Copying 2 files to /usr/local/src/apache-ant-1.7.0/build/classes/org/apache/tools/ant/taskdefs/optional/junit/xsl

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

compile-tests:

test-jar:

BUILD FAILED
/usr/local/src/apache-ant-1.7.0/build.xml:1105: The following error occurred while executing
this line:
/usr/local/src/apache-ant-1.7.0/build.xml:911: We cannot build the test jar unless JUnit is
present,
      as JUnit is needed to compile the test classes.

Total time: 6 seconds
... Failed Building Ant Distribution !
Bootstrap FAILED
[root@java32 apache-ant-1.7.0]#


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


Mime
View raw message