ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: ANT BUILD ERROR
Date Tue, 24 Jun 2003 06:36:12 GMT
Hi,
It sounds like there is a problem with <chmod/> in this build. Maybe comment
out or remove the line which is causing the problem, then do the chmod that
the build.xml is attempting to do manually.  I have had the same problem
myself.

>file:/usr/local/apache-ant-1.5.3-1/build.xml:788:
> chmod returned: -1
>
Otherwise, if you are just trying to build your own copy of ant, you can
download a nightly image from http://cvs.apache.org/builds/ant/nightly
This small problem with <chmod/> is away there.

Another issue is :

- you should have an ant development and an ant installation directory and
keep them separate,
- for instance you could have as ANT_HOME /usr/local/ant distinct from your
development/build directory /usr/local/apache-ant-1.5.3-1



Cheers

Antoine
----- Original Message -----
From: "rebel indian" <rebel_student@yahoo.com>
To: <user@ant.apache.org>
Sent: Tuesday, June 24, 2003 12:44 AM
Subject: ANT BUILD ERROR


> Hi folks:
> I downloaded .tar.gz archive:
> apache-ant-1.5.3-1-src.tar.gz [PGP] [MD5]
> as mentioned on web page Downloading Ant - Source
> Distribution on ant.apache.org
>
> After I did tar -zxvf apache....tar.gz
> I went to the directory of apache-ant....
>
> and  I wrote ./build.sh install to install the
> binaries in the current directory
> but what I get is BUILD FAILED. I am using
>
> [root@localhost apache-ant-1.5.3-1]# java -version
> java version "1.3.1_08"
> Java(TM) 2 Runtime Environment, Standard Edition
> (build 1.3.1_08-b03)
> Java HotSpot(TM) Client VM (build 1.3.1_08-b03, mixed
> mode)
>
> my PATHS:
> ---------------------------------------------------------
> my /etc/profile.d/java.sh file looks like this:
>
> JAVA_HOME=/usr/local/jdk1.3.1_08/
> export JAVA_HOME
> PATH=$PATH:$JAVA_HOME/bin
> export PATH
> -------------------------------------------------------
> /etc/profile.d/ant.sh
>
> ANT_HOME=/usr/local/apache-ant-1.5.3-1/
> export ANT_HOME
> PATH=$PATH:$ANT_HOME/bin
> export PATH
> ------------------------------------------------------
>
>
> This is all what I get when I write build.sh:
> ------------------------------------------------------
>
>
> [root@localhost apache-ant-1.5.3-1]# ./build.sh
> install
> ... Bootstrapping Ant Distribution
> ... Compiling Ant Classes
> Note: Some input files use or override a deprecated
> API.
> Note: Recompile with -deprecation for details.
> ... Copying Required Files
> ... Building Ant Distribution
> Buildfile: build.xml
>
> bootstrap:
>
> prepare:
>
> check_for_optional_packages:
>
> build:
> Created dir: /usr/local/apache-ant-1.5.3-1/build/lib
> Compiling 162 source files to
> /usr/local/apache-ant-1.5.3-1/build/classes
> Note: Some input files use or override a deprecated
> API.
> Note: Recompile with -deprecation for details.
> Copying 1 file to
> /usr/local/apache-ant-1.5.3-1/build/classes
> Copying 2 files to
> /usr/local/apache-ant-1.5.3-1/build/classes
> Copying 2 files to
>
/usr/local/apache-ant-1.5.3-1/build/classes/org/apache/tools/ant/taskdefs/op
tional/junit/xsl
>
> jars:
> Copying 4 files to /usr/local/apache-ant-1.5.3-1/build
> Building jar:
> /usr/local/apache-ant-1.5.3-1/build/lib/ant.jar
> Building jar:
> /usr/local/apache-ant-1.5.3-1/build/lib/optional.jar
>
> dist-lite:
> Created dir: /usr/local/apache-ant-1.5.3-1/bootstrap
> Created dir:
> /usr/local/apache-ant-1.5.3-1/bootstrap/bin
> Created dir:
> /usr/local/apache-ant-1.5.3-1/bootstrap/lib
> Copying 2 files to
> /usr/local/apache-ant-1.5.3-1/bootstrap/lib
> Copying 9 files to
> /usr/local/apache-ant-1.5.3-1/bootstrap/bin
>
> BUILD SUCCESSFUL
> Total time: 9 seconds
> ... Cleaning Up Build Directories
> ... Done Bootstrapping Ant Distribution
> Buildfile: build.xml
>
> install:
>
> prepare:
>
> check_for_optional_packages:
>
> build:
> Created dir:
> /usr/local/apache-ant-1.5.3-1/build/classes
> Compiling 444 source files to
> /usr/local/apache-ant-1.5.3-1/build/classes
> Note: Some input files use or override a deprecated
> API.
> Note: Recompile with -deprecation for details.
> Copying 3 files to
> /usr/local/apache-ant-1.5.3-1/build/classes
> Copying 2 files to
> /usr/local/apache-ant-1.5.3-1/build/classes
> Copying 2 files to
>
/usr/local/apache-ant-1.5.3-1/build/classes/org/apache/tools/ant/taskdefs/op
tional/junit/xsl
>
> jars:
> Building jar:
> /usr/local/apache-ant-1.5.3-1/build/lib/ant.jar
> Building jar:
> /usr/local/apache-ant-1.5.3-1/build/lib/optional.jar
>
> dist-lite:
> Created dir: /usr/local/apache-ant-1.5.3-1/bin
> Copying 2 files to /usr/local/apache-ant-1.5.3-1/lib
> Copying 9 files to /usr/local/apache-ant-1.5.3-1/bin
>
> BUILD FAILED
> file:/usr/local/apache-ant-1.5.3-1/build.xml:788:
> chmod returned: -1
>
> Total time: 16 seconds
>
> ------------------------------------------------------
>
> PLEASE HELP
> Thanks and Regards
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>



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


Mime
View raw message