Skip to content

Import a jbang script not having the *.java extension is not possible #48

@jmini

Description

@jmini

As discussed here jbangdev/jbang#676 there are cases where you do not have a .java extension for your Jbang script.

Reproducer<1/summary>

Example:

  • In the folder ~/tmp/tmp2
  • Create the file hello with this content:
///usr/bin/env jbang "$0" "$@" ; exit $?


import static java.lang.System.*;

public class hello {

    public static void main(String... args) {
        out.println("Hello World");
    }
}

Currently those files can not be selected:

Import Jbang Script in Eclipse IDE

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions