Can you use ant -verbose. This may give better diagnostics. The problem is not the Get task, it does not set proxies or use any sun class. In ant 1.7.0, system proxies are set by System.setProperty("java.net.useSystemProxies", "true"); (in org.apache.tools.ant.util.ProxySetup called from Main) using -noproxy causes this not to be called. So it looks like there is some issue the ibm jdk1.5 on aix when java.net.useSystemProxies is set to true.
Peter On 12/8/06, Jonah Beckford <[EMAIL PROTECTED]> wrote:
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]