Ant

Build Ant through proxy

Requirement: 1.9.5+

Add the following lines into build.xml

<target name="ivy-init" depends="ivy-proxy, ivy-probe-antlib, ivy-init-antlib" description="--> initialise Ivy settings">
  <ivy:settings file="${ivy.dir}/ivysettings.xml" />
  </target>
 <target name="ivy-proxy" description="-->Proxy Ivy settings">
  <property name="proxy.host" value="proxy.com" />
  <property name="proxy.port" value="8080" />
  <property name="proxy.user" value="user" />
  <property name="proxy.password" value="password" />
  <setproxy
    proxyhost="${proxy.host}"
    proxyport="${proxy.port}"
    proxyuser="${proxy.user}"
    proxypassword="${proxy.password}" />
 </target>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s