You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by st...@apache.org on 2012/10/07 13:02:04 UTC

[3/4] git commit: DELTASPIKE-280 register resources under their full path

DELTASPIKE-280 register resources under their full path


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

Branch: refs/heads/master
Commit: 66fcfd7c5de57d6771ceb433c54458ae4ac021d3
Parents: 737771b
Author: Mark Struberg <st...@apache.org>
Authored: Sun Oct 7 12:51:55 2012 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Sun Oct 7 12:51:55 2012 +0200

----------------------------------------------------------------------
 .../test/utils/ShrinkWrapArchiveUtil.java          |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/66fcfd7c/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/utils/ShrinkWrapArchiveUtil.java
----------------------------------------------------------------------
diff --git a/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/utils/ShrinkWrapArchiveUtil.java b/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/utils/ShrinkWrapArchiveUtil.java
index 3eea993..edece79 100644
--- a/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/utils/ShrinkWrapArchiveUtil.java
+++ b/deltaspike/test-utils/src/main/java/org/apache/deltaspike/test/utils/ShrinkWrapArchiveUtil.java
@@ -40,7 +40,7 @@ import java.util.zip.ZipEntry;
  * Lots of neat little helpers to more easily create JavaArchives from marker files on the classpath.
  * This should finally get moved to ShrinkWrap core!
  *
- * @deprecated This class should get moved to ShrinkWrap itself!
+ * TODO This class should get moved to ShrinkWrap itself!
  */
 public class ShrinkWrapArchiveUtil
 {
@@ -262,7 +262,7 @@ public class ShrinkWrapArchiveUtil
             }
             else
             {
-                javaArchive.addAsResource(entryName.replace('\\', '/'));
+                javaArchive.addAsResource(archiveEntry, entryName.replace('\\', '/'));
             }
         }