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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>:
>>> 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 <[EMAIL PROTECTED]> wrote:
>>>>
>>>>> Thanks Tim, everything works fine.
>>>>>
>>>>> Thanks,
>>>>> Vladimir.
>>>>>
>>>>> On 3/16/06, Tim Ellison <[EMAIL PROTECTED]>
>>>>> 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 <[EMAIL PROTECTED]>
>>>>> 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 <[EMAIL PROTECTED]>
>>>>> 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
>>>>> <[EMAIL PROTECTED]>:
>>>>>>>>>>> Thanks Tim.  I spotted that I'd missed that
>>>>> one too.
>>>>>>>>>>> -Mark.
>>>>>>>>>>>
>>>>>>>>>>> On 3/15/06, [EMAIL PROTECTED]
>>>>> <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
>>>>>>>>>>> IBM Java Technology Centre, UK.
>>>>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Tim Ellison ([EMAIL PROTECTED])
>>>>>>>> IBM Java technology centre, UK.
>>>>>>>>
>>>>>> --
>>>>>>
>>>>>> Tim Ellison ([EMAIL PROTECTED])
>>>>>> 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 ([EMAIL PROTECTED])
>>> IBM Java technology centre, UK.
>>>
> 

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

Reply via email to