admin@glassfish.java.net

Re: New CLI

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Thu, 02 Jul 2009 17:47:25 -0500

Byron Nevins wrote:
> Are you sure? QL passes. Doesn't QL use the --upload arg?

$ echo $ASADMIN_NEW
true
$ asadmin deploy --upload=true
/Users/Tim/asgroup/v3/v2/appserv-tests/devtests/deployment/build/WebNBean.ear

com.sun.enterprise.cli.framework.CommandException: remote failure:
I*nvalid option: upload*
Usage: deploy [ --virtualservers virtual_servers] [--contextroot
context_root] [--force=false] [ --precompilejsp=false] [ --name
component_name] [--upload=true] [ --retrieve local_dirpath]
[--dbvendorname dbvendorname] [--createtables=true |
--dropandcreatetables=true] [ --uniquetablenames=true] [
--deploymentplan deployment_plan] [--enabled=true] [ --libraries
jar_file[,jar_file*]] [--type pkg-type]
[--properties(name=value)[:name=value]*] file_archive| filepath

Command deploy failed.

>
> Tim Quinn wrote:
>> Bill Shannon wrote:
>>> Byron Nevins wrote on 06/29/09 11:00:
>>>> To start using the new CLI just set this environmental variable
>>>> semi-permanently
>>>>
>>>> ASADMIN_NEW=true
>> It looks as if file uploading is broken during deployment.
>>
>> The definition of the DeployCommandParameters (extended by
>> DeployCommand and ReDeployCommand) does not include --upload. (That
>> used to be detected by the old admin CLI client which took some other
>> actions.) So the CLI rejects --upload on the deploy command now.
>>
>> What's the fix in the new scheme?
>>
>> - Tim
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>