Author: jawi
Date: Thu Apr 26 11:31:14 2012
New Revision: 1330781
URL: http://svn.apache.org/viewvc?rev=1330781&view=rev
Log:
ACE-267: fixed incorrect use of URLs in VelocityArtifactPreprocessor.
Modified:
ace/trunk/ace-client-repository-helper-base/src/main/java/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java
Modified:
ace/trunk/ace-client-repository-helper-base/src/main/java/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java
URL:
http://svn.apache.org/viewvc/ace/trunk/ace-client-repository-helper-base/src/main/java/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java?rev=1330781&r1=1330780&r2=1330781&view=diff
==============================================================================
---
ace/trunk/ace-client-repository-helper-base/src/main/java/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java
(original)
+++
ace/trunk/ace-client-repository-helper-base/src/main/java/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java
Thu Apr 26 11:31:14 2012
@@ -270,7 +270,8 @@ public class VelocityArtifactPreprocesso
private byte[] getBytesFromUrl(String url) throws IOException {
byte[] result = null;
- InputStream in = new URL(url).openStream();
+ // ACE-267
+ InputStream in = m_connectionFactory.createConnection(new
URL(url)).getInputStream();
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();