admin@glassfish.java.net

--path

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Mon, 29 Jun 2009 17:25:08 -0700

Right now commands such as deploy accept the file to be deployed
as either a command operand:

$ asadmin deploy foo.war

or as the value of a --path option:

$ asadmin deploy --path foo.war

On the server side, the operand is assigned to a field that's
annotated as the "primary" field. In the deploy case, the name
of this field is "path". I think it's an unintended side effect
that --path is accepted as an option name. --path is not an option
in v2.

I'd like to remove support for these unintended options.

This should have no impact on compatibility with v2, but it does mean
that anyone using any of the early versions of v3 may have a compatibility
issue if they've used this "feature".

Unfortunately, the quicklook tests use this feature, suggesting that
others may also have used it.

What do people think?

Should I remove this feature and revert to the v2 behavior (fixing quicklook,
of course)?

Or should I retain this feature?

Not that this feature is *not* specific to the deploy commands,
nor to the --path option. It causes the "primary" parameter
for *any* command to also appear as a named option.