1 Reply Latest reply on Oct 3, 2005 1:38 PM by Darran Lofthouse

    Build behind the firewall

    Cat Newbie

      Hi all,
      not sure that should put this post here, but I have a problem during build the JBoss 4.0.3 and HEAD. The build is failed on "createthirdparty" target if it is running behind the firewall. Could you please to add the proxy setting there? For instance on following manner:

      <target name="createthirdparty" unless="inhibit.downloads" depends="check.inhibit.downloads, set.proxy">
       ...
      </target>
      
      <target name="check.proxy">
       <condition property="hasproxy">
       <and>
       <isset property="proxy.host"/>
       <isset property="proxy.port"/>
       <not>
       <equals arg1="" arg2="${proxy.host}" trim="true"/>
       </not>
       <not>
       <equals arg1="" arg2="${proxy.port}" trim="true"/>
       </not>
       </and>
       </condition>
      </target>
      
      <target name="set.proxy" if="hasproxy" depends="check.proxy">
       <echo>Proxy is set to ${proxy.host}:${proxy.port}</echo>
       <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
      </target>


      Where the proxy.host & proxy.port properties should be specified if you behind the firewall.

      Btw, on my mind, at this moment, the Maven is best tool to make a build system. Did you consider it when design the new one? I can be wrong, but seems like you "invents the wheel".