Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4873508

Accept system properties via new mechanism

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • tools
    • x86
    • windows_2000

      Name: gm110360 Date: 06/03/2003


      A DESCRIPTION OF THE REQUEST :
      Currently there is only one way to pass system properties into a Java application on startup - via the -D command line switch.

      On some operating systems there is a command line length limit, which can retrict the use of this feature.

      This is a request for a new mechanism to allow system properties to be specified on application startup. For example a command line switch that allows the specification of a properties file.

      JUSTIFICATION :
      The only workaround available is to write a bespoke mechanism to be invoked within the application. This may not always be possible, for example if the developed code runs within a third party application, like a web app in a web container.

      Generally speaking this would be a feature useful to any java code that makes use of system properties.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      a new command line switch, say -sp, might be used:

      java -sp mysystem.properties com.mydomain.MyApp

      where mysystem.properties is a properties file that contains properties to be added to the default system properties, overriding any defaults.
      (Review ID: 187024)
      ======================================================================

            ksrini Kumar Srinivasan
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: