Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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

Back to the top