diff options
author | Alberto Fanjul <albertofanjul@gmail.com> | 2018-07-21 11:12:28 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-07-22 14:25:56 +0200 |
commit | 9f4fb11e15beec50c581aeefb0281c8268c2116d (patch) | |
tree | 539cbc687ead8fd9b1ce9212ca6f1470879950b5 | |
parent | 02597c16914155cd16b22992ad57f49825bd835e (diff) | |
download | shared-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.in | 6 | ||||
-rw-r--r-- | tests/helloworld.groovy | 5 | ||||
-rw-r--r-- | tests/list | 1 |
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'); + } +} @@ -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 |