ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonah Beckford <njbeckf...@yahoo.com>
Subject Re: 1.7.0RC1 on IBM JDK 1.5
Date Fri, 08 Dec 2006 20:39:12 GMT
The blank line in the build.xml is:


    get src="http://www.beanshell.org/bsh-2.0b4.jar"


with a less-than symbol in front and without punctuation at the end.

----- Original Message ----
From: Jonah Beckford <njbeckford@yahoo.com>
To: user@ant.apache.org
Sent: Friday, December 8, 2006 12:32:17 PM
Subject: 1.7.0RC1 on IBM JDK 1.5

Using both the 1.7.0RC1 candidate, and the latest from subversion (Dec 8 11:44AM PST), I cannot
run the simple build.xml outlined at the bottom without using "-noproxy".

The underlying problem seems pretty simple; the "Get" task relies on a Sun package that is
not available/reliable on non-Sun JVMs.  Has anybody else encountered this or is able to replicate
this?  My platform is IBM JDK 1.5 on AIX 5.3 with 8-way PowerPC.  I think the proper thing
would be that Ant 1.7 disables the proxy when it encounters this "UnsatisfiedLinkError", so
that users aren't forced to specify -noproxy.

Thanks.

---------

/tmp/example $ cat build.xml
<project name="Problem Example" default="problem" basedir=".">
        <target name="problem">
                
                        dest="bsh-2.0b4.jar"/>
        </target>
</project>

/tmp/example $ /tmp/ant/bin/ant
Buildfile: build.xml

problem:
      [get] Getting: http://www.beanshell.org/bsh-2.0b4.jar
      [get] To: /tmp/example/bsh-2.0b4.jar

BUILD FAILED
/tmp/example/build.xml:4: java.lang.UnsatisfiedLinkError: sun/net/spi/DefaultProxySelector.init()Z

Total time: 0 seconds

/tmp/example $ /tmp/ant/bin/ant -version
Apache Ant version 1.7.0RC1 compiled on December 8 2006

/tmp/example $ java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64dev-20061003a (SR3))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20061003 (JIT enabled)
J9VM - 20060915_08260_BHdSMr
JIT  - 20060908_1811_r8
GC   - 20060906_AA)
JCL  - 20061003

/tmp/example $ /tmp/ant/bin/ant -noproxy
Buildfile: build.xml

problem:
      [get] Getting: http://www.beanshell.org/bsh-2.0b4.jar
      [get] To: /tmp/example/bsh-2.0b4.jar

BUILD SUCCESSFUL
Total time: 0 seconds


---------






---------------------------------------------------------------------
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