[GLASSFISH-19266] list-applications command interface does not look correct Created: 31/Oct/12  Updated: 05/Mar/13

Status: Open
Project: glassfish
Component/s: deployment
Affects Version/s: 4.0_b60
Fix Version/s: future release

Type: Bug Priority: Major
Reporter: Sanjeeb Sahoo Assignee: Hong Zhang
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


Syntax of list-applications is shown below:
list-applications - lists deployed applications

list-applications [--help]


] [--resources] [--subcomponents]
[--type type] [target]

When I look at acceptable values for --type, it looks to me that it is not same as what is allowed in --type argument in deploy command. This needs to be fixed. It should be in sync with deploy command.

Secondly, should --subcomponents not be renamed to --components? The man page refers to a non-existent command called list-sub-components which I think should be list-components.

Comment by Hong Zhang [ 31/Oct/12 ]

There is a asadmin list-sub-components command (the source code locates at main/appserver/deployment/javaee-core/src/main/java/org/glassfish/javaee/core/deployment). This command was there since very earlier time probably 8.*?

Yes, it might make sense to synch the --type values with deploy --type, but need to address the backward compatibility issue at the same time (the syntax for the --type was carried over from very eariler releases also)..

Comment by Sanjeeb Sahoo [ 02/Nov/12 ]

The problem is list-applications is a nucleus command where as list-sub-components is an appserver command, so if one is just using nucleus, the man page is referring to a non-existent command.

Comment by Hong Zhang [ 02/Nov/12 ]

I see. We would need to fix the man page for this.

Comment by Hong Zhang [ 05/Mar/13 ]

Based on discussions with Sahoo/Tom, we don't plan to do anything for this in this release. For doc part, the GlassFish distribution will include list-sub-components command so the link will still work. For synching the type option part, the semantics of the type option of deploy command and list-applications command are actually different (one is archive type which is one per application, the other is sniffer type which could be one or more per application). We will revisit this issue in later release to see if there is anything we want to do that time.

Generated at Tue Dec 01 03:39:02 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.