[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cbi-dev] Access the internet during the CBI build
|
Thank you, Jan/David, for the suggestion. I'll try it out.
Best Regards
Samuel Wu
"Sievers, Jan" ---04/20/2015 06:04:04 AM---eclipse proxy settings are notoriously hard to configure from the commandline [1]. One thing to watc
From: "Sievers, Jan" <jan.sievers@xxxxxxx>
To: Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>
Date: 04/20/2015 06:04 AM
Subject: Re: [cbi-dev] Access the internet during the CBI build
Sent by: cbi-dev-bounces@xxxxxxxxxxx
eclipse proxy settings are notoriously hard to configure from the commandline [1].
One thing to watch out for are native org.eclipse.core.net proxy fragments interfering which are trying to guess the proxy from OS level settings.
you may also want to check
https://wiki.eclipse.org/Tycho/FAQ#How_to_configure_HTTP_proxy_settings_during_test_execution.3F
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=326797
Regards,
Jan
PS: personally I still don't understand why a simple -Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=<port> on CLI should not be enough
From: cbi-dev-bounces@xxxxxxxxxxx [mailto:cbi-dev-bounces@xxxxxxxxxxx] On Behalf Of David M Williams
Sent: Samstag, 18. April 2015 16:21
To: Common-build Developers discussion
Subject: Re: [cbi-dev] Access the internet during the CBI build
I think what your missing (if I'm making the right assumptions) is that 'surefire' (I assume that's what is running your test?) is that it forks a different VM that the one used by the "outer" maven build (both, for flexibility and safety) So those args you are setting are never "passed through" to that forked VM.
See
https://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html
for other arguments you can set for the forked VM.
= = = =
Another alternative -- to try -- is to to change your test (or .. unit tests in general?) ... to call
System.setProperty("java.net.useSystemProperties", true);
Then how ever they are set, should work (with/without proxies).
But, this does depend on the "net work properties" be set correctly in the "Windows Internet settings" and "Gnome Internet settings" ... less sure it works at all on the Mac . And, not sure those "Gnome settings" have been set on the HIPP instances. (Though, I'm sure you could ask for that, if important to you.)
For reference, see
https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html
(This "useSystemProperties" has only been available from Java 7, I believe .. and, not positive it is supported in every Vendor's VM ... I've only used it a little).
HTH
From: Samuel Wu <samuelwu@xxxxxxxxxx>
To: cbi-dev@xxxxxxxxxxx,
Date: 04/17/2015 04:56 PM
Subject: [cbi-dev] Access the internet during the CBI build
Sent by: cbi-dev-bounces@xxxxxxxxxxx
________________________________________
There is a test case in the WTP build which needs to access a file, http://www.ws-i.org/Testing/Tools/2005/01/SSBP10_BP11_TAD_1-0.xml, on the internet during the build.
It uses the following call new URL(tadURI)openStream();
The file exists on the internet but the call seems timed out. I wonder whether the build machine allows this kind of access during the build.
The Maven is started with the following options.
[workspace] $ /shared/common/apache-maven-latest/bin/mvn clean install -V -B -Dhttp.proxyPort=9898 -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Dsurefire.timeout=1800 -Dhttp.proxyHost=proxy.eclipse.org -DskipWithIssues=false -Dmaven.ext.class.path=/home/hudson/genie.webtools/.hudson/maven/slavebundle/resources:/home/hudson/genie.webtools/.hudson/maven/slavebundle/lib/maven3-eventspy-3.1.jar:/home/hudson/genie.webtools/.hudson/war/webapp/WEB-INF/lib/hudson-remoting-3.0.0.jar -Dhudson.eventspy.port=40267 -Dmaven.repo.local=/home/hudson/genie.webtools/.hudson/jobs/WTP-R3_7_Integration_fail_on_tests/workspace/.maven/repo -f pom.xml -P bree-libs -P eclipse-sign -fae
Thank you.
Best Regards
Samuel Wu_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cbi-dev
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cbi-dev
