harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Ant proxy settings WAS Re: svn commit: r386171 - /incubator/harmony/enhanced/classlib/trunk/make/build-java.xml
Date Thu, 16 Mar 2006 15:29:49 GMT
--- Vladimir Strigun <vstrigun@gmail.com> wrote:

> Mikhail,
> 
> You can use ant setproxy[1] task for resolving the
> problem. It works
> for me. On the other hand, I don't think we should
> patch build files.
> Perhaps, It will be useful to document this
> somewhere.

For individuals who don't mind running Ant SVN HEAD,
its WHATSNEW contains the following blurb (IIRC from
Steve Loughran):

 On Java1.5+, Ant automatically sets the system
property
 java.net.useSystemProxies to true, which gives it
automatic use of the local
 IE (Windows) or Gnome2 (Unix/Linux) proxy settings.
This may break any build
 file that somehow relied on content outside the
firewall being unreachable:
 use the -noproxy command-line option to disable this
new feature.

This may help those who want to set proxy settings
without modifying buildfiles.

YMMV (I haven't tested personally).

-Matt

> 
> 
> Thanks,
> Vladimir.
> 
> [1]
>
http://ant.apache.org/manual/OptionalTasks/setproxy.html
> On 3/16/06, Mikhail Loenko <mloenko@gmail.com>
> wrote:
> > Tim, Mark
> >
> > revisions 386087, 386171 of that file break my
> build:
> >
> > prepare-depends:
> >      [get] Getting:
>
http://www.ibiblio.org/maven/xalan/jars/xalan-2.6.0.jar
> >      [get] To:
> C:\harmony\depends\jars\xalan-j_2.6.0\xalan.jar
> >      [get] Error getting
> >
>
http://www.ibiblio.org/maven/xalan/jars/xalan-2.6.0.jar
> to C:\
> > depends\jars\xalan-j_2.6.0\xalan.jar
> >
> > BUILD FAILED
> > C:\harmony\make\build.xml:36: The following error
> occurred while
> > executing this line:
> > C:\harmony\make\build-java.xml:352:
> java.net.NoRouteToHostException:
> > Operation timed out
> >
> > The problem seems to be with proxy setting
> >
> > Thanks,
> > Mikhail Loenko
> > Intel Middleware Products Division
> >
> >
> > 2006/3/16, Mark Hindess
> <mark.hindess@googlemail.com>:
> > > Thanks Tim.  I spotted that I'd missed that one
> too.
> > >
> > > -Mark.
> > >
> > > On 3/15/06, tellison@apache.org
> <tellison@apache.org> wrote:
> > > > Author: tellison
> > > > Date: Wed Mar 15 13:37:44 2006
> > > > New Revision: 386171
> > > >
> > > > URL:
> http://svn.apache.org/viewcvs?rev=386171&view=rev
> > > > Log:
> > > > Ensure the XML JARs go directly into the boot
> dir
> > > >
> > > > Modified:
> > > >    
>
incubator/harmony/enhanced/classlib/trunk/make/build-java.xml
> > > >
> > > > Modified:
>
incubator/harmony/enhanced/classlib/trunk/make/build-java.xml
> > > > URL:
>
http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/make/build-java.xml?rev=386171&r1=386170&r2=386171&view=diff
> > > >
>
==============================================================================
> > > > ---
>
incubator/harmony/enhanced/classlib/trunk/make/build-java.xml
> (original)
> > > > +++
>
incubator/harmony/enhanced/classlib/trunk/make/build-java.xml
> Wed Mar 15 13:37:44 2006
> > > > @@ -282,7 +282,7 @@
> > > >
> > > >          <!-- Copy across the dependency jars
> -->
> > > >          <copy
> todir="${target.output}/jre/lib/boot"
> overwrite="yes"
> > > > -              verbose="yes">
> > > > +              verbose="yes" flatten="yes">
> > > >              <fileset dir="${depends.jars}">
> > > >                  <patternset includes="*.jar"
> />
> > > >                  <patternset
> includes="xerces_2.6.2/*.jar" />
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Mark Hindess <mark.hindess@googlemail.com>
> > > IBM Java Technology Centre, UK.
> > >
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message