You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by Steven Noels <st...@outerthought.org> on 2002/12/12 00:17:41 UTC

using gump from behind a proxy

... doesn't work since JVM arguments do not trickle down to the Jenny 
invocation.

Must be more of an Ant question, but here goes anyhow:

setting ANT_OPTS=-Dhttp.proxyHost=proxy.pandora.be -Dhttp.proxyPort=8080

nor

ant -Dhttp.proxyHost=proxy.pandora.be -Dhttp.proxyPort=8080 xref

is doing anything meaningfull:

gen:
      [java] Failed to expand module with href 
http://cvs.apache.org/viewcvs/~checkout~/jakarta-ant-myrmidon/gump.xml bec
ause of exception java.net.ConnectException: Connection timed out: connect

I patched my local copy accordingly, but there must be some better way?

Index: proposal/gump/build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-alexandria/proposal/gump/build.xml,v
retrieving revision 1.11
diff -u -r1.11 build.xml
--- proposal/gump/build.xml	29 Nov 2002 09:47:25 -0000	1.11
+++ proposal/gump/build.xml	11 Dec 2002 23:14:04 -0000
@@ -42,6 +42,8 @@
    <!-- Merge the xml sources, resolving references -->
    <target name="gen" depends="compile" unless="uptodate">
      <java classname="Jenny" fork="yes" failonerror="true" 
classpath="jenny.jar">
+      <jvmarg value="-Dhttp.proxyHost=proxy.pandora.be"/>
+      <jvmarg value="-Dhttp.proxyPort=8080"/>
        <arg value="${workspace}"/>
      </java>
    </target>

Unsetting the fork attribute doesn't help neither.

Using Ant 1.5 on W2K.

</Steven>
-- 
Steven Noels                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0103539/
stevenn at outerthought.org                stevenn at apache.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>