Add proxy if necessary by setting proxy.enable in command line

master
David BRASSELY 2013-05-30 11:39:54 +02:00
parent f2a91f9c68
commit 699658e5ca
1 changed files with 9 additions and 1 deletions

View File

@ -82,7 +82,14 @@
</delete>
</target>
<target name="deploy" depends="xbean"/>
<target name="deploy" depends="proxy,xbean"/>
<target name="proxy" if="proxy.enabled">
<echo message="Setting proxy using host : ${proxy.host} and port : ${proxy.port}"/>
<setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"
proxyuser="${proxy.user}" proxypassword="${proxy.pass}"/>
</target>
<target name="sources" depends="dirs">
<zip destfile="build/ar/xbeansrc.zip"
@ -235,6 +242,7 @@
<target name="default" depends="deploy"/>
<target name="redeploy" depends="clean, deploy"/>
<!-- oldxbean.jar target =========================================== -->
<target name="oldxbean.jar">