diff options
author | adrianocrestani <adrianocrestani@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-28 06:38:34 +0000 |
---|---|---|
committer | adrianocrestani <adrianocrestani@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-28 06:38:34 +0000 |
commit | aaea9a7255e72725634af9f46bb59c4f61418776 (patch) | |
tree | 4ca00006ac9373cf7a85f358abe2df47dcf0510e /branches/sca-java-1.x/modules/domain-search/src/main/java/org/apache/tuscany/sca/domain/search/impl/WrappedFileContent.java | |
parent | e14097e558d803c2b22a92ec3484330ffebf1459 (diff) |
applying patch tuscany_2552_phillipe_ramalho_09_30_2009.patch from TUSCANY-2552
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@830448 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/domain-search/src/main/java/org/apache/tuscany/sca/domain/search/impl/WrappedFileContent.java')
-rw-r--r-- | branches/sca-java-1.x/modules/domain-search/src/main/java/org/apache/tuscany/sca/domain/search/impl/WrappedFileContent.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/branches/sca-java-1.x/modules/domain-search/src/main/java/org/apache/tuscany/sca/domain/search/impl/WrappedFileContent.java b/branches/sca-java-1.x/modules/domain-search/src/main/java/org/apache/tuscany/sca/domain/search/impl/WrappedFileContent.java index 0a1dfa75e9..78434d4c0d 100644 --- a/branches/sca-java-1.x/modules/domain-search/src/main/java/org/apache/tuscany/sca/domain/search/impl/WrappedFileContent.java +++ b/branches/sca-java-1.x/modules/domain-search/src/main/java/org/apache/tuscany/sca/domain/search/impl/WrappedFileContent.java @@ -25,7 +25,6 @@ import java.net.JarURLConnection; import java.net.URL; /** - * * @version $Rev$ $Date$ */ public class WrappedFileContent implements FileContent { @@ -37,49 +36,9 @@ public class WrappedFileContent implements FileContent { if (protocol.equals("jar")) { JarURLConnection jarConn = (JarURLConnection)url.openConnection(); - // Enumeration<JarEntry> entries = jarConn.getJarFile().entries(); String file = url.getFile(); file = file.substring(file.lastIndexOf('!') + 1); - // if (file.charAt(file.length() - 1) != '/') { - // - // int beginIndex; - // - // if (file.charAt(0) == '/') { - // beginIndex = 1; - // - // } else { - // beginIndex = 0; - // } - // - // file = file.substring(beginIndex); - // - // while (entries.hasMoreElements()) { - // String actualFile = entries.nextElement().getName(); - // - // if (actualFile.charAt(0) == '/') { - // beginIndex = 1; - // - // } else { - // beginIndex = 0; - // } - // - // if (actualFile.length() - beginIndex == file.length() + 1 && - // actualFile.charAt(actualFile.length() - 1) == '/') { - // - // if (actualFile.startsWith(file, beginIndex)) { - // file = actualFile; - // - // break; - // - // } - // - // } - // - // } - // - // } - this.fileContent = ZipFileContent.createZipFileContent(jarConn.getJarFile(), file); } else if (protocol.equals("file")) { |