]> source.dussan.org Git - gitblit.git/commitdiff
fixed build to allow builds where a proxy is needed for access to outside resources
authorJason Pyeron <jpyeron@pdinc.us>
Sun, 19 Aug 2012 17:44:52 +0000 (13:44 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 20 Aug 2012 01:35:52 +0000 (21:35 -0400)
see: http://ant.apache.org/manual/proxy.html

build.xml

index 2230277a2adb99ceb27ca1b2f9b01336836be07a..5ea612a92b481837d4e97a11d09614920c80f590 100644 (file)
--- a/build.xml
+++ b/build.xml
                        <include name="com/gitblit/Constants.java" />\r
                        <include name="com/gitblit/utils/StringUtils.java" />                   \r
                </javac>\r
-               <java classpath="${project.build.dir}" classname="com.gitblit.build.Build" />\r
+\r
+               <java classpath="${project.build.dir}" classname="com.gitblit.build.Build">\r
+                       <syspropertyset id="proxy.properties">\r
+                               <propertyref prefix="java.net.useSystemProxies"/>\r
+                               <propertyref prefix="http."/>\r
+                               <propertyref prefix="https."/>\r
+                               <propertyref prefix="ftp."/>\r
+                               <propertyref prefix="socksProxy"/>\r
+                       </syspropertyset>\r
+               </java>\r
 \r
                <!-- Compile Project -->\r
                <path id="master-classpath">\r