You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/11/11 02:01:04 UTC
[jira] [Closed] (GROOVY-9178) .groovy filename extension is
needlessly long; suggest using .gvy instead.
[ https://issues.apache.org/jira/browse/GROOVY-9178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-9178.
-----------------------------
> .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: Improvement
> Components: Compiler
> Affects Versions: 3.0.0-beta-1, 2.5.7, 2.4.17
> Reporter: Brennon Miller
> Priority: Minor
> Labels: documentation, features, newbie
>
> 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_ auto-detected 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 due to a unrecognized "Player" class).
> 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 ^(pun unintended)^ the use of the shorter file extension in future releases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)