Do not set proxy if maven.proxy.host is null or empty.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@155562 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier 2005-02-26 18:50:51 +00:00
parent cdd6ae204d
commit d220bf37ae
2 changed files with 5 additions and 5 deletions

View File

@ -346,11 +346,13 @@
unless="noget">
<x:comment>Proxy settings works only with a JDK 1.2 and higher.</x:comment>
<j:if test="${maven.proxy.host != null and !maven.proxy.host.trim().equals('')}">
<setproxy
proxyhost="${maven.proxy.host}"
proxyport="${maven.proxy.port}"
proxyuser="${maven.proxy.username}"
proxypassword="${maven.proxy.password}"/>
</j:if>
<j:forEach var="lib" items="${pom.artifacts}">
<maven:makeRelativePath var="relativePath" basedir="${maven.repo.local}" path="${lib.path}" separator="/"/>
@ -371,7 +373,7 @@
</j:when>
<j:otherwise>
<maven:makeRelativePath var="relativePath" basedir="${basedir}" path="${lib.path}" separator="/"/>
<copy todir="$${libdir}" file="${relativePath}"/>
<copy todir="$${libdir}" file="${relativePath}"/>
</j:otherwise>
</j:choose>
</j:forEach>

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
@ -17,18 +16,17 @@
* limitations under the License.
*/
-->
<document>
<properties>
<title>Ant plugin changes</title>
<author email="dion@multitask.com.au">dIon Gillard</author>
</properties>
<body>
<release version="1.9" date="">
<action dev="epugh" type="add" issue="MPANT-7">Obey jar override and not attempt to download relative jars.</action>
<action dev="aheritier" type="add" issue="MPANT-20" due-to="Dennis Lundberg">Allow URL substitutions in generated build.xml files.</action>
</release>
<action dev="aheritier" type="fix">Do not set proxy if maven.proxy.host is null or empty.</action>
</release>
<release version="1.8.1" date="2004-08-20">
<action dev="carlos" type="fix" issue="MPANT-16">Use relative paths in test resources filesets.</action>
</release>