You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Tim Ellison <t....@gmail.com> on 2006/03/16 17:51:55 UTC

Re: downloading dependencies

Exactly, thanks Vladimir.  I've put that in at repo revision 386377
(with slightly modified property names).

Let me know if you need more.

Thanks,
Tim

Vladimir Strigun wrote:
> 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....@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 <ml...@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 <ma...@googlemail.com>:
>>>>> Thanks Tim.  I spotted that I'd missed that one too.
>>>>>
>>>>> -Mark.
>>>>>
>>>>> On 3/15/06, tellison@apache.org <te...@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 <ma...@googlemail.com>
>>>>> IBM Java Technology Centre, UK.
>>>>>
>> --
>>
>> Tim Ellison (t.p.ellison@gmail.com)
>> IBM Java technology centre, UK.
>>
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Re: downloading dependencies

Posted by Geir Magnusson Jr <ge...@pobox.com>.
We need to document this.  Would you be willing to submit a patch to the
*source* for

http://incubator.apache.org/harmony/subcomponents/classlibrary/build_classlib.html

(IOW, don't edit the source html...  check out

https://svn.apache.org/repos/asf/incubator/harmony/standard/site

and follow the directions.

(Note to self - we need a page on site building...)


Matt Benson wrote:
> again, guys, to be sure it's not missed:
> 
> adding "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
> to the ANT_OPTS environment variable should be
> sufficient for command-line Ant without explicitly
> invoking <setproxy>.
> 
> -Matt
> 
> --- Vladimir Strigun <vs...@gmail.com> wrote:
> 
>> Thanks Tim, everything works fine.
>>
>> Thanks,
>> Vladimir.
>>
>> On 3/16/06, Tim Ellison <t....@gmail.com>
>> wrote:
>>> Exactly, thanks Vladimir.  I've put that in at
>> repo revision 386377
>>> (with slightly modified property names).
>>>
>>> Let me know if you need more.
>>>
>>> Thanks,
>>> Tim
>>>
>>> Vladimir Strigun wrote:
>>>> 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....@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 <ml...@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
>> <ma...@googlemail.com>:
>>>>>>>> Thanks Tim.  I spotted that I'd missed that
>> one too.
>>>>>>>> -Mark.
>>>>>>>>
>>>>>>>> On 3/15/06, tellison@apache.org
>> <te...@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 <ma...@googlemail.com>
>>>>>>>> IBM Java Technology Centre, UK.
>>>>>>>>
>>>>> --
>>>>>
>>>>> Tim Ellison (t.p.ellison@gmail.com)
>>>>> IBM Java technology centre, UK.
>>>>>
>>> --
>>>
>>> Tim Ellison (t.p.ellison@gmail.com)
>>> IBM Java technology centre, UK.
>>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 

Re: downloading dependencies

Posted by Matt Benson <gu...@yahoo.com>.
--- Vladimir Strigun <vs...@gmail.com> wrote:

> Works for me also. Explicit call of setproxy can be
> removed. Thanks
> Matt, and sorry for the misunderstanding.

No need for apologies.  It took me quite awhile to
track it down.  I still don't know where it is
documented in released versions of Ant; only because
Steve Loughran clearly documented it in SVN HEAD was I
able to report it.  To be completely clear, these
properties are Java builtins; see:

http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html

And no, I didn't know that either.  :)

-Matt

> 
> Thanks,
> Vladimir.
> 
> On 3/17/06, Mikhail Loenko <ml...@gmail.com>
> wrote:
> > I've tried what Matt recommended and it works!
> >
> > I think it is also README that should be updated
> >
> > Thanks,
> > Mikhail
> >
> > 2006/3/16, Tim Ellison <t....@gmail.com>:
> > > d'oh -- got it, thanks Matt.
> > >
> > > Vladimir: If you give me the all clear I'll
> back-out the explicit call
> > > to <setproxy> (but leave the comments in the
> properties file to remind
> > > us how to do it).
> > >
> > > Regards,
> > > Tim
> > >
> > > Matt Benson wrote:
> > > > again, guys, to be sure it's not missed:
> > > >
> > > > adding "-Dhttp.proxyHost=proxy
> -Dhttp.proxyPort=8080"
> > > > to the ANT_OPTS environment variable should be
> > > > sufficient for command-line Ant without
> explicitly
> > > > invoking <setproxy>.
> > > >
> > > > -Matt
[SNIP]

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

Re: downloading dependencies

Posted by Tim Ellison <t....@gmail.com>.
FYI: done in repo revision 386645.

Vladimir Strigun wrote:
> Works for me also. Explicit call of setproxy can be removed. Thanks
> Matt, and sorry for the misunderstanding.
> 
> Thanks,
> Vladimir.
> 
> On 3/17/06, Mikhail Loenko <ml...@gmail.com> wrote:
>> I've tried what Matt recommended and it works!
>>
>> I think it is also README that should be updated
>>
>> Thanks,
>> Mikhail
>>
>> 2006/3/16, Tim Ellison <t....@gmail.com>:
>>> d'oh -- got it, thanks Matt.
>>>
>>> Vladimir: If you give me the all clear I'll back-out the explicit call
>>> to <setproxy> (but leave the comments in the properties file to remind
>>> us how to do it).
>>>
>>> Regards,
>>> Tim
>>>
>>> Matt Benson wrote:
>>>> again, guys, to be sure it's not missed:
>>>>
>>>> adding "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
>>>> to the ANT_OPTS environment variable should be
>>>> sufficient for command-line Ant without explicitly
>>>> invoking <setproxy>.
>>>>
>>>> -Matt
>>>>
>>>> --- Vladimir Strigun <vs...@gmail.com> wrote:
>>>>
>>>>> Thanks Tim, everything works fine.
>>>>>
>>>>> Thanks,
>>>>> Vladimir.
>>>>>
>>>>> On 3/16/06, Tim Ellison <t....@gmail.com>
>>>>> wrote:
>>>>>> Exactly, thanks Vladimir.  I've put that in at
>>>>> repo revision 386377
>>>>>> (with slightly modified property names).
>>>>>>
>>>>>> Let me know if you need more.
>>>>>>
>>>>>> Thanks,
>>>>>> Tim
>>>>>>
>>>>>> Vladimir Strigun wrote:
>>>>>>> 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....@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 <ml...@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
>>>>> <ma...@googlemail.com>:
>>>>>>>>>>> Thanks Tim.  I spotted that I'd missed that
>>>>> one too.
>>>>>>>>>>> -Mark.
>>>>>>>>>>>
>>>>>>>>>>> On 3/15/06, tellison@apache.org
>>>>> <te...@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 <ma...@googlemail.com>
>>>>>>>>>>> IBM Java Technology Centre, UK.
>>>>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Tim Ellison (t.p.ellison@gmail.com)
>>>>>>>> IBM Java technology centre, UK.
>>>>>>>>
>>>>>> --
>>>>>>
>>>>>> Tim Ellison (t.p.ellison@gmail.com)
>>>>>> IBM Java technology centre, UK.
>>>>>>
>>>>
>>>> __________________________________________________
>>>> Do You Yahoo!?
>>>> Tired of spam?  Yahoo! Mail has the best spam protection around
>>>> http://mail.yahoo.com
>>>>
>>> --
>>>
>>> Tim Ellison (t.p.ellison@gmail.com)
>>> IBM Java technology centre, UK.
>>>
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Re: downloading dependencies

Posted by Vladimir Strigun <vs...@gmail.com>.
Works for me also. Explicit call of setproxy can be removed. Thanks
Matt, and sorry for the misunderstanding.

Thanks,
Vladimir.

On 3/17/06, Mikhail Loenko <ml...@gmail.com> wrote:
> I've tried what Matt recommended and it works!
>
> I think it is also README that should be updated
>
> Thanks,
> Mikhail
>
> 2006/3/16, Tim Ellison <t....@gmail.com>:
> > d'oh -- got it, thanks Matt.
> >
> > Vladimir: If you give me the all clear I'll back-out the explicit call
> > to <setproxy> (but leave the comments in the properties file to remind
> > us how to do it).
> >
> > Regards,
> > Tim
> >
> > Matt Benson wrote:
> > > again, guys, to be sure it's not missed:
> > >
> > > adding "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
> > > to the ANT_OPTS environment variable should be
> > > sufficient for command-line Ant without explicitly
> > > invoking <setproxy>.
> > >
> > > -Matt
> > >
> > > --- Vladimir Strigun <vs...@gmail.com> wrote:
> > >
> > >> Thanks Tim, everything works fine.
> > >>
> > >> Thanks,
> > >> Vladimir.
> > >>
> > >> On 3/16/06, Tim Ellison <t....@gmail.com>
> > >> wrote:
> > >>> Exactly, thanks Vladimir.  I've put that in at
> > >> repo revision 386377
> > >>> (with slightly modified property names).
> > >>>
> > >>> Let me know if you need more.
> > >>>
> > >>> Thanks,
> > >>> Tim
> > >>>
> > >>> Vladimir Strigun wrote:
> > >>>> 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....@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 <ml...@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
> > >> <ma...@googlemail.com>:
> > >>>>>>>> Thanks Tim.  I spotted that I'd missed that
> > >> one too.
> > >>>>>>>> -Mark.
> > >>>>>>>>
> > >>>>>>>> On 3/15/06, tellison@apache.org
> > >> <te...@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 <ma...@googlemail.com>
> > >>>>>>>> IBM Java Technology Centre, UK.
> > >>>>>>>>
> > >>>>> --
> > >>>>>
> > >>>>> Tim Ellison (t.p.ellison@gmail.com)
> > >>>>> IBM Java technology centre, UK.
> > >>>>>
> > >>> --
> > >>>
> > >>> Tim Ellison (t.p.ellison@gmail.com)
> > >>> IBM Java technology centre, UK.
> > >>>
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> >
> > --
> >
> > Tim Ellison (t.p.ellison@gmail.com)
> > IBM Java technology centre, UK.
> >
>

Re: downloading dependencies

Posted by Mikhail Loenko <ml...@gmail.com>.
I've tried what Matt recommended and it works!

I think it is also README that should be updated

Thanks,
Mikhail

2006/3/16, Tim Ellison <t....@gmail.com>:
> d'oh -- got it, thanks Matt.
>
> Vladimir: If you give me the all clear I'll back-out the explicit call
> to <setproxy> (but leave the comments in the properties file to remind
> us how to do it).
>
> Regards,
> Tim
>
> Matt Benson wrote:
> > again, guys, to be sure it's not missed:
> >
> > adding "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
> > to the ANT_OPTS environment variable should be
> > sufficient for command-line Ant without explicitly
> > invoking <setproxy>.
> >
> > -Matt
> >
> > --- Vladimir Strigun <vs...@gmail.com> wrote:
> >
> >> Thanks Tim, everything works fine.
> >>
> >> Thanks,
> >> Vladimir.
> >>
> >> On 3/16/06, Tim Ellison <t....@gmail.com>
> >> wrote:
> >>> Exactly, thanks Vladimir.  I've put that in at
> >> repo revision 386377
> >>> (with slightly modified property names).
> >>>
> >>> Let me know if you need more.
> >>>
> >>> Thanks,
> >>> Tim
> >>>
> >>> Vladimir Strigun wrote:
> >>>> 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....@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 <ml...@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
> >> <ma...@googlemail.com>:
> >>>>>>>> Thanks Tim.  I spotted that I'd missed that
> >> one too.
> >>>>>>>> -Mark.
> >>>>>>>>
> >>>>>>>> On 3/15/06, tellison@apache.org
> >> <te...@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 <ma...@googlemail.com>
> >>>>>>>> IBM Java Technology Centre, UK.
> >>>>>>>>
> >>>>> --
> >>>>>
> >>>>> Tim Ellison (t.p.ellison@gmail.com)
> >>>>> IBM Java technology centre, UK.
> >>>>>
> >>> --
> >>>
> >>> Tim Ellison (t.p.ellison@gmail.com)
> >>> IBM Java technology centre, UK.
> >>>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
> --
>
> Tim Ellison (t.p.ellison@gmail.com)
> IBM Java technology centre, UK.
>

Re: downloading dependencies

Posted by Tim Ellison <t....@gmail.com>.
d'oh -- got it, thanks Matt.

Vladimir: If you give me the all clear I'll back-out the explicit call
to <setproxy> (but leave the comments in the properties file to remind
us how to do it).

Regards,
Tim

Matt Benson wrote:
> again, guys, to be sure it's not missed:
> 
> adding "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
> to the ANT_OPTS environment variable should be
> sufficient for command-line Ant without explicitly
> invoking <setproxy>.
> 
> -Matt
> 
> --- Vladimir Strigun <vs...@gmail.com> wrote:
> 
>> Thanks Tim, everything works fine.
>>
>> Thanks,
>> Vladimir.
>>
>> On 3/16/06, Tim Ellison <t....@gmail.com>
>> wrote:
>>> Exactly, thanks Vladimir.  I've put that in at
>> repo revision 386377
>>> (with slightly modified property names).
>>>
>>> Let me know if you need more.
>>>
>>> Thanks,
>>> Tim
>>>
>>> Vladimir Strigun wrote:
>>>> 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....@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 <ml...@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
>> <ma...@googlemail.com>:
>>>>>>>> Thanks Tim.  I spotted that I'd missed that
>> one too.
>>>>>>>> -Mark.
>>>>>>>>
>>>>>>>> On 3/15/06, tellison@apache.org
>> <te...@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 <ma...@googlemail.com>
>>>>>>>> IBM Java Technology Centre, UK.
>>>>>>>>
>>>>> --
>>>>>
>>>>> Tim Ellison (t.p.ellison@gmail.com)
>>>>> IBM Java technology centre, UK.
>>>>>
>>> --
>>>
>>> Tim Ellison (t.p.ellison@gmail.com)
>>> IBM Java technology centre, UK.
>>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Re: downloading dependencies

Posted by Matt Benson <gu...@yahoo.com>.
again, guys, to be sure it's not missed:

adding "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
to the ANT_OPTS environment variable should be
sufficient for command-line Ant without explicitly
invoking <setproxy>.

-Matt

--- Vladimir Strigun <vs...@gmail.com> wrote:

> Thanks Tim, everything works fine.
> 
> Thanks,
> Vladimir.
> 
> On 3/16/06, Tim Ellison <t....@gmail.com>
> wrote:
> > Exactly, thanks Vladimir.  I've put that in at
> repo revision 386377
> > (with slightly modified property names).
> >
> > Let me know if you need more.
> >
> > Thanks,
> > Tim
> >
> > Vladimir Strigun wrote:
> > > 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....@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 <ml...@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
> <ma...@googlemail.com>:
> > >>>>> Thanks Tim.  I spotted that I'd missed that
> one too.
> > >>>>>
> > >>>>> -Mark.
> > >>>>>
> > >>>>> On 3/15/06, tellison@apache.org
> <te...@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 <ma...@googlemail.com>
> > >>>>> IBM Java Technology Centre, UK.
> > >>>>>
> > >> --
> > >>
> > >> Tim Ellison (t.p.ellison@gmail.com)
> > >> IBM Java technology centre, UK.
> > >>
> > >
> >
> > --
> >
> > Tim Ellison (t.p.ellison@gmail.com)
> > IBM Java technology centre, UK.
> >
> 


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

Re: downloading dependencies

Posted by Vladimir Strigun <vs...@gmail.com>.
Thanks Tim, everything works fine.

Thanks,
Vladimir.

On 3/16/06, Tim Ellison <t....@gmail.com> wrote:
> Exactly, thanks Vladimir.  I've put that in at repo revision 386377
> (with slightly modified property names).
>
> Let me know if you need more.
>
> Thanks,
> Tim
>
> Vladimir Strigun wrote:
> > 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....@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 <ml...@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 <ma...@googlemail.com>:
> >>>>> Thanks Tim.  I spotted that I'd missed that one too.
> >>>>>
> >>>>> -Mark.
> >>>>>
> >>>>> On 3/15/06, tellison@apache.org <te...@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 <ma...@googlemail.com>
> >>>>> IBM Java Technology Centre, UK.
> >>>>>
> >> --
> >>
> >> Tim Ellison (t.p.ellison@gmail.com)
> >> IBM Java technology centre, UK.
> >>
> >
>
> --
>
> Tim Ellison (t.p.ellison@gmail.com)
> IBM Java technology centre, UK.
>