Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 67862 - Handle --version on CLI
Handle --version on CLI
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
All All
: P3 (vote)
Assigned To: issues@platform
Depends on:
  Show dependency treegraph
Reported: 2005-10-31 18:19 UTC by Vince Kraemer
Modified: 2009-01-06 14:10 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Vince Kraemer 2005-10-31 18:19:51 UTC
This option should provide version info to a user without starting the IDE.

The initial implementation of this should probably just return the simplest
amount of detail similar to the -version option on java.

I can imagine this could be extended to address a wide variety of details about
module versions etc...
Comment 1 Kedar Mhaswade 2005-10-31 18:33:50 UTC
I think more than anything else, I'd like to have this as a basic information
before I start the IDE (which might take 2 minutes). Also, I have a Solaris box
that I can (r)login to. I have an NB executable path and want to know the
version. I don't think everything about IDE could be known only after starting
the IDE. (Imagine what would happen if Java VM won't start unless you provided a
main class ;))
Comment 2 Jesse Glick 2005-10-31 18:43:38 UTC
Detailed info about the IDE is always displayed on the console when you start it
when logging to console is enabled (default on in dev builds, off in release
builds). Suggest

--version: display quick summary to stderr a la TopLogging, such as

  Product Version       = NetBeans IDE Dev (Build 051028)
  Operating System      = Linux version 2.6.13-1.1532_FC4 running on i386
  Java; VM; Vendor      = 1.6.0-ea; Java HotSpot(TM) Client VM 1.6.0-ea-b57; Sun
Microsystems Inc.
  Java Home             = /space/jdk1.6.0-b57/jre
  System Locale; Encod. = en_US (nb); UTF-8
  IDE Install; User Dir = /space/nb/curr/platform6; /home/jglick/nbdev

and exit.

Optionally, also --showversion: like --version but do not exit afterwards.

BTW TopLogging's "IDE Install" should probably be modified to display
${netbeans.home}:${netbeans.dirs} rather than the current ${netbeans.home} only.
The About box already does this correctly. I will try to patch it.
Comment 3 Jesse Glick 2005-11-02 22:31:12 UTC
More useful info block:

committed     Up-To-Date  1.4        

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo