admin@glassfish.java.net

Re: asadmin usage

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Thu, 01 Jul 2010 13:45:20 -0700

Normally the usage message is generated automatically from the
@Param annotations on your code. If for some reason you need
a non-default usage message (should be rare), use the approach
Bhakti describes below.

In this particular case (create-virtual-server), it already has
a non-default usage message, which you'll need to update. Be sure
to include newlines and tabs so that the result fits in 80 columns
and lines up properly.


Bhakti Mehta wrote on 07/01/2010 12:12 PM:
> I think you need to add @I18n to your command
> Then in LocalStrings.properties you add
> <i18n>.usagetext=.... (where "<i18n>" is the value of the @I18N annotation on the
> class
> Hope that helps.
> Regards,
> Bhakti
> ----- Original Message -----
> From: amy.roh_at_oracle.com
> To: admin_at_glassfish.dev.java.net
> Sent: Thursday, July 1, 2010 11:23:58 AM GMT -08:00 US/Canada Pacific
> Subject: asadmin usage
>
> I'd like to update the usage for create-virtual-server to include
> --target option. Where do I do this?
>
> Usage: asadmin [asadmin-utility-options] create-virtual-server --hosts
> <hosts>
> [--httplisteners <httplisteners> |
> --networklisteners <networklisteners>]
> [--defaultwebmodule <defaultwebmodule>] [--state <state>]
> [--logfile <logfile>] [--property <property>]
> [-?|--help[=<help(default:false)>]] virtual_server_id
>
> Thanks,
> Amy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>