#!/bin/sh

exec /usr/local/bin/bb.real \
  {% if system_proxy is defined and system_proxy != '' %}
  -Dhttp.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttp.proxyPort={{ system_proxy | urlsplit('port') }} -Dhttps.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttps.proxyPort={{ system_proxy | urlsplit('port') }} \
  {% endif %}
  $@
