| Summary: | Ant Task doesn't use Proxies | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | David Carver <d_a_carver> | ||||
| Component: | Mylyn | Assignee: | David Green <greensopinion> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | webmaster | ||||
| Version: | 1.3 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 323292 | ||||||
| Attachments: |
|
||||||
|
Description
David Carver
Can you specify how the proxy settings are configured for the VM? We're using code like this: bc. URL url = /// InputStream in = url.openStream(); // use it attached a context with relevant locations Created attachment 177561 [details]
mylyn/context/zip
(In reply to comment #1) > Can you specify how the proxy settings are configured for the VM? In Hudson there the JVM opts are configuring the system properties: http.proxyHost http.proxyPort According to this site, you need to do some special connections to use the Proxies. http://www.rgagnon.com/javadetails/java-0085.html There may be some additional steps that need to happen from within Ant or to use Ant's proxy support directly. Some more info on Ant and Proxy support. http://ant.apache.org/manual/proxy.html According to the referenced article it should just work. Are those options being set on the VM that launches Ant? (In reply to comment #6) > According to the referenced article it should just work. Are those options > being set on the VM that launches Ant? They are being set in two places. MAVEN_OPTS ANT_OPTS environment variables. I could try forcing them into the build script that then makes the build specific to that machine. Adding Matt to the conversation, as he is most familiar with how the new hudson instance is setuup. BTW, all of the other built in ant tasks are working as expected when it comes to accessing the resources out on the net. Can you please attach your build script? You can see the necessary pieces here: http://git.eclipse.org/c/webtools/org.eclipse.webtools.incubator.git/tree/sourceediting/documentation/org.eclipse.wst.xml.vex.documentation?h=vex-dev The two pieces are: buildHelper.xml and pom.xml I have the necessary steps commented out in the pom.xml for the moment. Output from build From the following: https://hudson.eclipse.org/hudson/view/WTP/job/cbi-wtp-inc.vex/35/ Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.4:run (mylyn-wiki-text) on project org.eclipse.wst.xml.vex.documentation: An Ant BuildException has occured: The following error occurred while executing this line: /opt/users/hudsonbuild/workspace/cbi-wtp-inc.vex/sourceediting/documentation/org.eclipse.wst.xml.vex.documentation/buildHelp.xml:38: Cannot read from http://wiki.eclipse.org/index.php?title=Vex%2FUserGuide&action=raw: wiki.eclipse.org: Unknown host wiki.eclipse.org -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :org.eclipse.wst.xml.vex.documentation David is correct about where the proxy data is set(it's also in the ANT_ARGS and JVM_OPTS ). However you shouldn't need a proxy to access .eclipse.org(strictly speaking), and in this case it looks like the issue was an inability to resolve the host name. I've corrected that so let me know if that fixes things. -M. David C: Please let me know if the DNS fix (comment #11) resolves your problem. Matt, that seemed to fix it. So marking this as WorksForMe. |