groovy

Import class does not work with if the imported script is named as 'XXX.gvy' instead of 'XXX.groovy'

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-5
  • Fix Version/s: 1.0-JSR-6
  • Component/s: None
  • Labels:
    None
  • Environment:
    I have tested under Windows 2000 Server,
    but I think it exists for other OS as well
  • Number of attachments :
    0

Description

For the JSR-05 release, importing classes defined in other scripts
works like charm if they are using extension 'groovy'.

However, I have problem to import classes if I named my scripts
as 'XXX.gvy ' - using the second standard extension instead of 'XXX.groovy'.

[Blackdrag's Comment: the loader does only look for .groovy... Maybe we should set the
extension in the compiler configuration, and then it will be
configurable throughout groovy]

Activity

Hide
blackdrag blackdrag added a comment -

you can now use CompilerConfiguration#setDefaultScriptExtension to change to ".gvy"

Show
blackdrag blackdrag added a comment - you can now use CompilerConfiguration#setDefaultScriptExtension to change to ".gvy"

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: