harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Strigun" <vstri...@gmail.com>
Subject Re: downloading dependencies (was: Re: svn commit: r386171 - /incubator/harmony/enhanced/classlib/trunk/make/build-java.xml)
Date Thu, 16 Mar 2006 16:13:08 GMT
For instance, we can add set-proxy target to depends.xml:

Index: classlib/trunk/make/depends.xml
===================================================================
--- classlib/trunk/make/depends.xml     (revision 386350)
+++ classlib/trunk/make/depends.xml     (working copy)
@@ -59,6 +59,8 @@
   <target name="download"
          description="Download required jars">

+    <antcall target="set-proxy"/>
+
     <mkdir dir="${xalan.dir}" />
     <antcall target="download-one-jar">
       <param name="src" value="${xalan.url}" />
@@ -93,6 +95,10 @@
     <get src="${src}" dest="${dest}" usetimestamp="true" verbose="true" />
   </target>

+  <target name="set-proxy" if="proxy">
+    <setproxy proxyhost="${proxy}" proxyport="${port}"/>
+  </target>
+
   <target name="check-one-jar">
     <available file="${dest}" type="file" property="${dest}.exists" />
     <fail>


So, if you use proxy you just need to pass proxy parameters in command line:
ant -Dproxy=proxy -Dport=80 -f depends.xml download

Otherwise, it will try to download files without proxy.

Thanks,
Vladimir.

On 3/16/06, Tim Ellison <t.p.ellison@gmail.com> wrote:
> Perhaps we can put the proxy properties into the make/depends.properties
> file and people can override on the command-line or edit that file to
> reflect their set-up.
>
> The builds now check for dependencies so you can add them into the right
> structure manually and avoid all this.
>
> Regards,
> Tim
>
> Vladimir Strigun 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.
> >
> >
> > 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.
> >>>
> >
>
> --
>
> Tim Ellison (t.p.ellison@gmail.com)
> IBM Java technology centre, UK.
>

Mime
View raw message