Skip to content

Provide better documentation on java command @file support #5824

Closed

Description

@headius

I was reminded today that the standard OpenJDK java command supports a special syntax to indicate there are Java options in a file:

java @path/to/opts_file.txt ...

Currently we only advise people to use -J flags or JAVA_OPTS environment variable. If we made this feature more visible, it would allow people to easily customize their Java options.

Some ideas:

  • Always look for a particular file in the current directory, similar to how we look for .jrubyrc. The file could be .jruby.java_opts and if present, it will be added to the Java command line.
  • Update all documentation that mentions JRUBY_OPTS to document the @file syntax and the above dotfile

Other thoughts?

Activity

  1. added this to the JRuby 9.2.8.0 milestone on Aug 9, 2019
  2. headius commented on Oct 16, 2019

    @headius
    MemberAuthor

    This is in! The PR is merged and we will include wiki updates and clear release notes to that effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions