Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Sievers2014-05-13 03:24:02 -0400
committerJan Sievers2014-05-13 03:24:02 -0400
commit6ae8b7a22d82ab10928c3937977cdd7cec40bb9f (patch)
tree742ebdb843ed9047b8c40c8b0b710fd5291e1095
parenta2fccc3d90bfc89d3b3f95797ecfdf9637c8a4d8 (diff)
downloadorg.eclipse.tycho.nexus-6ae8b7a22d82ab10928c3937977cdd7cec40bb9f.tar.gz
org.eclipse.tycho.nexus-6ae8b7a22d82ab10928c3937977cdd7cec40bb9f.tar.xz
org.eclipse.tycho.nexus-6ae8b7a22d82ab10928c3937977cdd7cec40bb9f.zip
432280 Add MIME type for jar files
Bug: 432280 Change-Id: Ia9fa08df31c499eed44efd13127ba859f6aba554 Signed-off-by: Jan Sievers <jan.sievers@sap.com>
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelper.java1
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelperTest.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelper.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelper.java
index e831acc..ebbf33b 100644
--- a/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelper.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelper.java
@@ -25,6 +25,7 @@ public class MimeTypeHelper {
result.put("json", "application/json");
result.put("css", "text/css");
result.put("less", "text/css");
+ result.put("jar", "application/zip");
return result;
}
diff --git a/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelperTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelperTest.java
index 26fb9a9..5c95180 100644
--- a/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelperTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/MimeTypeHelperTest.java
@@ -29,6 +29,7 @@ public class MimeTypeHelperTest {
assertEquals("application/javascript", MimeTypeHelper.guessMimeType("test/foo.js"));
assertEquals("text/plain", MimeTypeHelper.guessMimeType("test/foo.properties"));
assertEquals("application/json", MimeTypeHelper.guessMimeType("test/test.json"));
+ assertEquals("application/zip", MimeTypeHelper.guessMimeType("test/test.jar"));
}
@Test

Back to the top