You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Bill Haneman <Bi...@ireland.sun.com> on 2001/01/08 16:31:55 UTC

Re: Batik [using http proxy]

Running Batik directly (not from build.sh/ant):

java -Dhttp.proxyHost=mywebproxyhost -Dhttp.proxyPort=8080 
org.apache.batik.apps.svgviewer.Main 
http://www.zvon.org/xxl/SVGReferenceSVG/Output/intro.svg

In other words, the URL connection which Batik uses
recognises the http.proxyHost and http.proxyPort
properties.

It would be nice if the build.sh/build.xml files
(and ant) were modified to allow this to be set in
the build.xml file, or via environment variables...
but for the moment, the above should get you what you need.

Best regards,

-Bill

------
Bill Haneman x19279
Ireland Desktop Engineering
Sun Microsystems Ireland Ltd.


Re: Batik [using http proxy]

Posted by Vincent Hardy <vh...@eng.sun.com>.
Bill Haneman wrote:
> 
> Running Batik directly (not from build.sh/ant):
> 
> java -Dhttp.proxyHost=mywebproxyhost -Dhttp.proxyPort=8080
> org.apache.batik.apps.svgviewer.Main
> http://www.zvon.org/xxl/SVGReferenceSVG/Output/intro.svg
> 
> In other words, the URL connection which Batik uses
> recognises the http.proxyHost and http.proxyPort
> properties.
> 
> It would be nice if the build.sh/build.xml files
> (and ant) were modified to allow this to be set in
> the build.xml file, or via environment variables...
> but for the moment, the above should get you what you need.

An additional piece of information: in the svgviewer 
documentation:

http://xml.apache.org/batik/svgviewer.html	

there is a documentation on how to set up your proxy in the 
build.xml rules. They need to be updated with something like:

<java fork="yes"
  classname="${class-prefix}.apps.svgviewer.Main"
  jvmargs="-DproxyHost=firewall.eng.mycompany.com -DproxyPort=8080">
    <classpath>
         <pathelement location="${dest}" />
         <path refid="libs-classpath"/>
         <pathelement location="resources" />
   </classpath>
   <arg value="${args}"/>
</java>

Vincent.
> 
> Best regards,
> 
> -Bill
> 
> ------
> Bill Haneman x19279
> Ireland Desktop Engineering
> Sun Microsystems Ireland Ltd.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org