You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Brennon Miller (JIRA)" <ji...@apache.org> on 2019/06/26 18:51:00 UTC

[jira] [Created] (GROOVY-9178) .groovy filename extension is needlessly long; suggest using .gvy instead.

Brennon Miller created GROOVY-9178:
--------------------------------------

             Summary: .groovy filename extension is needlessly long; suggest using .gvy instead.
                 Key: GROOVY-9178
                 URL: https://issues.apache.org/jira/browse/GROOVY-9178
             Project: Groovy
          Issue Type: Wish
          Components: Compiler
    Affects Versions: 2.4.17, 2.5.7, 3.0.0-beta-1
            Reporter: Brennon Miller


The `.gvy` filename extension not only matches the conventional three-letter extension format, but it is [already accepted](https://git-wip-us.apache.org/repos/asf?p=groovy.git;a=blob;f=src/main/groovy/groovy/ui/GroovyMain.java;h=d227357c60895bc1bd1fb79dbfa6727972529326;hb=refs/heads/master#l437) by the `groovy` interpreter as a default filename extension to search for (in case of running scripts). However, it is _not_ autodetected by the compiler when seeking class files to include (for example, if Game.gvy and Player.gvy are in the same folder, and Game.gvy has a `Player` attribute, `groovyc` will not compile `Game.gvy` into a classfile).

I am currently working to have the .gvy filename extention [officially recognized by the xdg shared-mime-info](https://gitlab.freedesktop.org/xdg/shared-mime-info/merge_requests/24) for Linux and similar desktops, and it may be wise to extend the use of the shorter file extension in future releases.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)