incubator-deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject git commit: DELTASPIKE-35 fix ArchiveBuilder for paths with spaces
Date Thu, 29 Dec 2011 08:25:23 GMT
Updated Branches:
  refs/heads/master 81170a8b0 -> cefea5630


DELTASPIKE-35 fix ArchiveBuilder for paths with spaces


Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/cefea563
Tree: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/cefea563
Diff: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/cefea563

Branch: refs/heads/master
Commit: cefea5630d621fad77c8016408fc6a030e4de929
Parents: 81170a8
Author: Mark Struberg <struberg@apache.org>
Authored: Thu Dec 29 09:24:46 2011 +0100
Committer: Mark Struberg <struberg@apache.org>
Committed: Thu Dec 29 09:24:46 2011 +0100

----------------------------------------------------------------------
 .../api/temptestutil/ShrinkWrapArchiveUtil.java    |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/cefea563/deltaspike/core/impl/src/test/java/org/apache/deltaspike/core/test/api/temptestutil/ShrinkWrapArchiveUtil.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/core/test/api/temptestutil/ShrinkWrapArchiveUtil.java
b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/core/test/api/temptestutil/ShrinkWrapArchiveUtil.java
index dd6da85..4c1f3c3 100644
--- a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/core/test/api/temptestutil/ShrinkWrapArchiveUtil.java
+++ b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/core/test/api/temptestutil/ShrinkWrapArchiveUtil.java
@@ -107,10 +107,10 @@ public class ShrinkWrapArchiveUtil
             if (!f.exists())
             {
                 // try a fallback if the URL contains %20 -> spaces
-                if (jarUrlPath.contains("%20"))
+                if (urlString.contains("%20"))
                 {
-                    jarUrlPath = jarUrlPath.replaceAll("%20", " ");
-                    f = new File( (new URL(ensureCorrectUrlFormat(jarUrlPath))).getFile()
);
+                    urlString = urlString.replaceAll("%20", " ");
+                    f = new File( (new URL(ensureCorrectUrlFormat(urlString))).getFile()
);
                 }
 
             }


Mime
View raw message