summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Fanjul <albertofanjul@gmail.com>2018-07-21 11:12:28 +0200
committerBastien Nocera <hadess@hadess.net>2018-07-22 14:25:56 +0200
commit9f4fb11e15beec50c581aeefb0281c8268c2116d (patch)
tree539cbc687ead8fd9b1ce9212ca6f1470879950b5
parent02597c16914155cd16b22992ad57f49825bd835e (diff)
downloadshared-mime-info-9f4fb11e15beec50c581aeefb0281c8268c2116d.tar.gz
Add MIME type info for Groovy scripting language
https://bugs.freedesktop.org/show_bug.cgi?id=107321
-rw-r--r--freedesktop.org.xml.in6
-rw-r--r--tests/helloworld.groovy5
-rw-r--r--tests/list1
3 files changed, 12 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 6c7b1ace..0380f1d0 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -2404,6 +2404,12 @@ command to generate the output files.
<alias type="application/x-java-vm"/>
<glob pattern="*.class"/>
</mime-type>
+ <mime-type type="text/x-groovy">
+ <_comment>Groovy script</_comment>
+ <sub-class-of type="text/plain"/>
+ <generic-icon name="text-x-generic"/>
+ <glob pattern="*.groovy"/>
+ </mime-type>
<mime-type type="application/x-java-jnlp-file">
<_comment>JNLP file</_comment>
<acronym>JNLP</acronym>
diff --git a/tests/helloworld.groovy b/tests/helloworld.groovy
new file mode 100644
index 00000000..0ac3ab84
--- /dev/null
+++ b/tests/helloworld.groovy
@@ -0,0 +1,5 @@
+class HelloWorld {
+ static void main(String[] args) {
+ println('Hello World');
+ }
+}
diff --git a/tests/list b/tests/list
index fb1b9336..57cf68cb 100644
--- a/tests/list
+++ b/tests/list
@@ -237,6 +237,7 @@ test.fl application/x-fluid
bug-30656-xchat.conf application/octet-stream oxx
bug-30656-xchat.conf text/plain x
helloworld.java text/x-java ox
+helloworld.groovy text/x-groovy ox
# Copied from http://asurvey.net/ccsfagent/media/survey.js
survey.js application/javascript ox
# Copied from gecko/accessible/src/jsat/Utils.jsm in Boot2Gecko